Skip to content

Commit 931cb03

Browse files
Rajkumar Manoharanlinvjw
authored andcommitted
ath9k_htc: configure bssid on ASSOC/IBSS change
After the change "mac80211: remove spurious BSSID change flag", BSS_CHANGED_BSSID will not be passed on association or IBSS status changes. So it could be better to program bssid on ASSOC or IBSS change notification. Not doing so, is affecting the packet transmission. Cc: stable@vger.kernel.org [3.4+] Reported-by: Michael Leun <lkml20120218@newton.leun.net> Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 882b7b7 commit 931cb03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/net/wireless/ath/ath9k/htc_drv_main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,20 +1496,19 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw,
14961496
priv->num_sta_assoc_vif++ : priv->num_sta_assoc_vif--;
14971497

14981498
if (priv->ah->opmode == NL80211_IFTYPE_STATION) {
1499+
ath9k_htc_choose_set_bssid(priv);
14991500
if (bss_conf->assoc && (priv->num_sta_assoc_vif == 1))
15001501
ath9k_htc_start_ani(priv);
15011502
else if (priv->num_sta_assoc_vif == 0)
15021503
ath9k_htc_stop_ani(priv);
15031504
}
15041505
}
15051506

1506-
if (changed & BSS_CHANGED_BSSID) {
1507+
if (changed & BSS_CHANGED_IBSS) {
15071508
if (priv->ah->opmode == NL80211_IFTYPE_ADHOC) {
15081509
common->curaid = bss_conf->aid;
15091510
memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN);
15101511
ath9k_htc_set_bssid(priv);
1511-
} else if (priv->ah->opmode == NL80211_IFTYPE_STATION) {
1512-
ath9k_htc_choose_set_bssid(priv);
15131512
}
15141513
}
15151514

0 commit comments

Comments
 (0)