mac80211: set BSS_CHANGED_IDLE on vif reconfig
authorEliad Peller <eliad@wizery.com>
Tue, 1 Nov 2011 13:16:55 +0000 (15:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 21:01:00 +0000 (16:01 -0500)
The vif might be busy while reconfiguring
(e.g. associated), so indicate BSS_CHANGED_IDLE as well.

Reported-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/util.c

index 72b3a2ec0d244f17966ca8d4e8af20b5d77756dc..83c482177ecbef1ed255343d2821d93c11d22828 100644 (file)
@@ -1057,7 +1057,8 @@ int ieee80211_reconfig(struct ieee80211_local *local)
                          BSS_CHANGED_BEACON_INT |
                          BSS_CHANGED_BSSID |
                          BSS_CHANGED_CQM |
-                         BSS_CHANGED_QOS;
+                         BSS_CHANGED_QOS |
+                         BSS_CHANGED_IDLE;
 
                switch (sdata->vif.type) {
                case NL80211_IFTYPE_STATION: