]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: set bss_conf.idle when vif is connected
authorEliad Peller <eliad@wizery.com>
Wed, 11 Jan 2012 11:11:50 +0000 (13:11 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:47:09 +0000 (14:47 -0500)
commita4d1d9d6c881e4b892604c652a94468b73544557
treefe96a1cd18291247dfd13efccf09be9334a1cc27
parent3f3c31bdb3e4e1eff2505c464423f54cfeb31133
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>
net/mac80211/iface.c