diff options
author | Eliad Peller <eliad@wizery.com> | 2012-01-11 12:11:50 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 20:47:09 +0100 |
commit | 405385f8ce7a2ed8f82e216d88b5282142e1288b (patch) | |
tree | fe96a1cd18291247dfd13efccf09be9334a1cc27 /net/mac80211 | |
parent | mac80211: update oper_channel on ibss join (diff) | |
download | linux-405385f8ce7a2ed8f82e216d88b5282142e1288b.tar.xz linux-405385f8ce7a2ed8f82e216d88b5282142e1288b.zip |
mac80211: set bss_conf.idle when vif is connected
__ieee80211_recalc_idle() iterates through the vifs,
sets bss_conf.idle = true if they are disconnected,
and increases "count" if they are not (which later
gets evaluated in order to determine whether the
device is idle).
However, the loop doesn't set bss_conf.idle = false
(along with increasing "count"), causing the device
idle state and the vif idle state to get out of sync
in some cases.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index e47768cb8cb3..01a21c2f6ab3 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -1314,6 +1314,7 @@ u32 __ieee80211_recalc_idle(struct ieee80211_local *local) continue; } /* count everything else */ + sdata->vif.bss_conf.idle = false; count++; } |