aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc.h
diff options
context:
space:
mode:
authorSujith Manoharan <Sujith.Manoharan@atheros.com>2011-02-20 21:18:39 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-23 16:25:26 -0500
commit7c277349ecbd66e19fad3d949fa6ef6c131a3b62 (patch)
tree2b7cada323d95b3864eb89c83771abec38f0ba67 /drivers/net/wireless/ath/ath9k/htc.h
parent9304c82d8f3b40eb31c2d04f5849fbd9802c06ef (diff)
ath9k_htc: Remove OP_ASSOCIATED variable
mac80211 stores the association state in ieee80211_bss_conf. Use this and remove the local state, which is incorrect anyway since it is stored globally and not on a per-VIF basis. Restarting ANI and reconfiguration of HW beacon timers when a scan run ends requires more work. This is handled by iterating over the active interfaces. Finally, remove the useless check for associated status in RX processing. Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h
index 4e19e14e8c11..eecb42b24bc5 100644
--- a/drivers/net/wireless/ath/ath9k/htc.h
+++ b/drivers/net/wireless/ath/ath9k/htc.h
@@ -335,11 +335,10 @@ void ath_htc_cancel_btcoex_work(struct ath9k_htc_priv *priv);
335#define OP_SCANNING BIT(1) 335#define OP_SCANNING BIT(1)
336#define OP_LED_ASSOCIATED BIT(2) 336#define OP_LED_ASSOCIATED BIT(2)
337#define OP_LED_ON BIT(3) 337#define OP_LED_ON BIT(3)
338#define OP_ASSOCIATED BIT(4) 338#define OP_ENABLE_BEACON BIT(4)
339#define OP_ENABLE_BEACON BIT(5) 339#define OP_LED_DEINIT BIT(5)
340#define OP_LED_DEINIT BIT(6) 340#define OP_BT_PRIORITY_DETECTED BIT(6)
341#define OP_BT_PRIORITY_DETECTED BIT(7) 341#define OP_BT_SCAN BIT(7)
342#define OP_BT_SCAN BIT(8)
343 342
344struct ath9k_htc_priv { 343struct ath9k_htc_priv {
345 struct device *dev; 344 struct device *dev;
@@ -370,6 +369,8 @@ struct ath9k_htc_priv {
370 u16 nstations; 369 u16 nstations;
371 u16 seq_no; 370 u16 seq_no;
372 u32 bmiss_cnt; 371 u32 bmiss_cnt;
372 bool rearm_ani;
373 bool reconfig_beacon;
373 374
374 struct ath9k_hw_cal_data caldata; 375 struct ath9k_hw_cal_data caldata;
375 376
@@ -429,6 +430,7 @@ void ath9k_htc_reset(struct ath9k_htc_priv *priv);
429void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv); 430void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv);
430void ath9k_htc_beacon_config(struct ath9k_htc_priv *priv, 431void ath9k_htc_beacon_config(struct ath9k_htc_priv *priv,
431 struct ieee80211_vif *vif); 432 struct ieee80211_vif *vif);
433void ath9k_htc_beacon_reconfig(struct ath9k_htc_priv *priv);
432void ath9k_htc_swba(struct ath9k_htc_priv *priv, u8 beacon_pending); 434void ath9k_htc_swba(struct ath9k_htc_priv *priv, u8 beacon_pending);
433 435
434void ath9k_htc_rxep(void *priv, struct sk_buff *skb, 436void ath9k_htc_rxep(void *priv, struct sk_buff *skb,
@@ -441,7 +443,7 @@ void ath9k_htc_beaconep(void *drv_priv, struct sk_buff *skb,
441int ath9k_htc_update_cap_target(struct ath9k_htc_priv *priv); 443int ath9k_htc_update_cap_target(struct ath9k_htc_priv *priv);
442void ath9k_htc_station_work(struct work_struct *work); 444void ath9k_htc_station_work(struct work_struct *work);
443void ath9k_htc_aggr_work(struct work_struct *work); 445void ath9k_htc_aggr_work(struct work_struct *work);
444void ath9k_ani_work(struct work_struct *work);; 446void ath9k_ani_work(struct work_struct *work);
445void ath_start_ani(struct ath9k_htc_priv *priv); 447void ath_start_ani(struct ath9k_htc_priv *priv);
446 448
447int ath9k_tx_init(struct ath9k_htc_priv *priv); 449int ath9k_tx_init(struct ath9k_htc_priv *priv);