aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2014-03-01 15:15:47 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-03-17 13:13:05 -0400
commit88a4f56ef09d6f38beee79e9abff7cb7f867dc52 (patch)
tree2dee738fd90c54a650b5e429240a12c19e90e086 /drivers/net
parenta099874ed9db31e8ac0d8173394e54081d518635 (diff)
ath9k_htc: use ath_beacon_conf.enable_beacon
to reduce difference between ath9k and ath9k_htc Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc.h1
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_beacon.c4
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_main.c4
3 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h
index 69022b08d4d1..d5a10882bd74 100644
--- a/drivers/net/wireless/ath/ath9k/htc.h
+++ b/drivers/net/wireless/ath/ath9k/htc.h
@@ -439,7 +439,6 @@ static inline void ath9k_htc_stop_btcoex(struct ath9k_htc_priv *priv)
439 439
440#define OP_INVALID BIT(0) 440#define OP_INVALID BIT(0)
441#define OP_SCANNING BIT(1) 441#define OP_SCANNING BIT(1)
442#define OP_ENABLE_BEACON BIT(2)
443#define OP_BT_PRIORITY_DETECTED BIT(3) 442#define OP_BT_PRIORITY_DETECTED BIT(3)
444#define OP_BT_SCAN BIT(4) 443#define OP_BT_SCAN BIT(4)
445#define OP_ANI_RUNNING BIT(5) 444#define OP_ANI_RUNNING BIT(5)
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
index 09ad141b38b6..4540eacee093 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
@@ -199,7 +199,7 @@ static void ath9k_htc_beacon_config_ap(struct ath9k_htc_priv *priv,
199 } while (nexttbtt < tsftu); 199 } while (nexttbtt < tsftu);
200 } 200 }
201 201
202 if (test_bit(OP_ENABLE_BEACON, &priv->op_flags)) 202 if (bss_conf->enable_beacon)
203 imask |= ATH9K_INT_SWBA; 203 imask |= ATH9K_INT_SWBA;
204 204
205 ath_dbg(common, CONFIG, 205 ath_dbg(common, CONFIG,
@@ -247,7 +247,7 @@ static void ath9k_htc_beacon_config_adhoc(struct ath9k_htc_priv *priv,
247 else 247 else
248 priv->ah->config.sw_beacon_response_time = MIN_SWBA_RESPONSE; 248 priv->ah->config.sw_beacon_response_time = MIN_SWBA_RESPONSE;
249 249
250 if (test_bit(OP_ENABLE_BEACON, &priv->op_flags)) 250 if (bss_conf->enable_beacon)
251 imask |= ATH9K_INT_SWBA; 251 imask |= ATH9K_INT_SWBA;
252 252
253 ath_dbg(common, CONFIG, 253 ath_dbg(common, CONFIG,
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 90dad4172b0a..40733d03e1a2 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1529,7 +1529,7 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw,
1529 ath_dbg(common, CONFIG, "Beacon enabled for BSS: %pM\n", 1529 ath_dbg(common, CONFIG, "Beacon enabled for BSS: %pM\n",
1530 bss_conf->bssid); 1530 bss_conf->bssid);
1531 ath9k_htc_set_tsfadjust(priv, vif); 1531 ath9k_htc_set_tsfadjust(priv, vif);
1532 set_bit(OP_ENABLE_BEACON, &priv->op_flags); 1532 priv->cur_beacon_conf.enable_beacon = 1;
1533 ath9k_htc_beacon_config(priv, vif); 1533 ath9k_htc_beacon_config(priv, vif);
1534 } 1534 }
1535 1535
@@ -1543,7 +1543,7 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw,
1543 ath_dbg(common, CONFIG, 1543 ath_dbg(common, CONFIG,
1544 "Beacon disabled for BSS: %pM\n", 1544 "Beacon disabled for BSS: %pM\n",
1545 bss_conf->bssid); 1545 bss_conf->bssid);
1546 clear_bit(OP_ENABLE_BEACON, &priv->op_flags); 1546 priv->cur_beacon_conf.enable_beacon = 0;
1547 ath9k_htc_beacon_config(priv, vif); 1547 ath9k_htc_beacon_config(priv, vif);
1548 } 1548 }
1549 } 1549 }