0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef STA_H_INCLUDED
0010 #define STA_H_INCLUDED
0011
0012
0013
0014
0015 int cw1200_start(struct ieee80211_hw *dev);
0016 void cw1200_stop(struct ieee80211_hw *dev);
0017 int cw1200_add_interface(struct ieee80211_hw *dev,
0018 struct ieee80211_vif *vif);
0019 void cw1200_remove_interface(struct ieee80211_hw *dev,
0020 struct ieee80211_vif *vif);
0021 int cw1200_change_interface(struct ieee80211_hw *dev,
0022 struct ieee80211_vif *vif,
0023 enum nl80211_iftype new_type,
0024 bool p2p);
0025 int cw1200_config(struct ieee80211_hw *dev, u32 changed);
0026 void cw1200_configure_filter(struct ieee80211_hw *dev,
0027 unsigned int changed_flags,
0028 unsigned int *total_flags,
0029 u64 multicast);
0030 int cw1200_conf_tx(struct ieee80211_hw *dev, struct ieee80211_vif *vif,
0031 unsigned int link_id, u16 queue,
0032 const struct ieee80211_tx_queue_params *params);
0033 int cw1200_get_stats(struct ieee80211_hw *dev,
0034 struct ieee80211_low_level_stats *stats);
0035 int cw1200_set_key(struct ieee80211_hw *dev, enum set_key_cmd cmd,
0036 struct ieee80211_vif *vif, struct ieee80211_sta *sta,
0037 struct ieee80211_key_conf *key);
0038
0039 int cw1200_set_rts_threshold(struct ieee80211_hw *hw, u32 value);
0040
0041 void cw1200_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
0042 u32 queues, bool drop);
0043
0044 u64 cw1200_prepare_multicast(struct ieee80211_hw *hw,
0045 struct netdev_hw_addr_list *mc_list);
0046
0047 int cw1200_set_pm(struct cw1200_common *priv, const struct wsm_set_pm *arg);
0048
0049
0050
0051
0052 void cw1200_join_complete_cb(struct cw1200_common *priv,
0053 struct wsm_join_complete *arg);
0054
0055
0056
0057
0058 void cw1200_free_event_queue(struct cw1200_common *priv);
0059 void cw1200_event_handler(struct work_struct *work);
0060 void cw1200_bss_loss_work(struct work_struct *work);
0061 void cw1200_bss_params_work(struct work_struct *work);
0062 void cw1200_keep_alive_work(struct work_struct *work);
0063 void cw1200_tx_failure_work(struct work_struct *work);
0064
0065 void __cw1200_cqm_bssloss_sm(struct cw1200_common *priv, int init, int good,
0066 int bad);
0067 static inline void cw1200_cqm_bssloss_sm(struct cw1200_common *priv,
0068 int init, int good, int bad)
0069 {
0070 spin_lock(&priv->bss_loss_lock);
0071 __cw1200_cqm_bssloss_sm(priv, init, good, bad);
0072 spin_unlock(&priv->bss_loss_lock);
0073 }
0074
0075
0076
0077
0078 int cw1200_setup_mac(struct cw1200_common *priv);
0079 void cw1200_join_timeout(struct work_struct *work);
0080 void cw1200_unjoin_work(struct work_struct *work);
0081 void cw1200_join_complete_work(struct work_struct *work);
0082 void cw1200_wep_key_work(struct work_struct *work);
0083 void cw1200_update_listening(struct cw1200_common *priv, bool enabled);
0084 void cw1200_update_filtering(struct cw1200_common *priv);
0085 void cw1200_update_filtering_work(struct work_struct *work);
0086 void cw1200_set_beacon_wakeup_period_work(struct work_struct *work);
0087 int cw1200_enable_listening(struct cw1200_common *priv);
0088 int cw1200_disable_listening(struct cw1200_common *priv);
0089 int cw1200_set_uapsd_param(struct cw1200_common *priv,
0090 const struct wsm_edca_params *arg);
0091 void cw1200_ba_work(struct work_struct *work);
0092 void cw1200_ba_timer(unsigned long arg);
0093
0094
0095 int cw1200_set_tim(struct ieee80211_hw *dev, struct ieee80211_sta *sta,
0096 bool set);
0097 int cw1200_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
0098 struct ieee80211_sta *sta);
0099 int cw1200_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
0100 struct ieee80211_sta *sta);
0101 void cw1200_sta_notify(struct ieee80211_hw *dev, struct ieee80211_vif *vif,
0102 enum sta_notify_cmd notify_cmd,
0103 struct ieee80211_sta *sta);
0104 void cw1200_bss_info_changed(struct ieee80211_hw *dev,
0105 struct ieee80211_vif *vif,
0106 struct ieee80211_bss_conf *info,
0107 u64 changed);
0108 int cw1200_ampdu_action(struct ieee80211_hw *hw,
0109 struct ieee80211_vif *vif,
0110 struct ieee80211_ampdu_params *params);
0111
0112 void cw1200_suspend_resume(struct cw1200_common *priv,
0113 struct wsm_suspend_resume *arg);
0114 void cw1200_set_tim_work(struct work_struct *work);
0115 void cw1200_set_cts_work(struct work_struct *work);
0116 void cw1200_multicast_start_work(struct work_struct *work);
0117 void cw1200_multicast_stop_work(struct work_struct *work);
0118 void cw1200_mcast_timeout(struct timer_list *t);
0119
0120 #endif