ath9k: configure bss info at assoc notification
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Fri, 9 Mar 2012 23:36:49 +0000 (05:06 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Mar 2012 18:21:51 +0000 (14:21 -0400)
The proper place to configure bss info is at assoc notification. So that
ath9k continues to work if the supirous bssid notification will be
removed in future.

Cc: Johannes Berg <johannes@sipsolutions.net>
Reported-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c

index cc2535c38beddd6a9adb2db9be3a2fe8683ec51c..33403a92e45fbd55a81d08ca56748af5d24fd08c 100644 (file)
@@ -1973,7 +1973,7 @@ static void ath9k_bss_info_changed(struct ieee80211_hw *hw,
        ath9k_ps_wakeup(sc);
        mutex_lock(&sc->mutex);
 
-       if (changed & BSS_CHANGED_BSSID) {
+       if (changed & BSS_CHANGED_ASSOC) {
                ath9k_config_bss(sc, vif);
 
                ath_dbg(common, CONFIG, "BSSID: %pM aid: 0x%x\n",