mac80211: do not enable ps if 802.1x controlled port is unblocked
authorJason Young <a.young.jason@gmail.com>
Fri, 11 Mar 2011 00:43:19 +0000 (16:43 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 11 Mar 2011 19:15:37 +0000 (14:15 -0500)
commit808118cb41dfe12a1ac0e35515ac4d91b170bdf9
tree98939cd9a6e66bcd70597ba33fdf071914e109ac
parentd89dba7a275f40757d27ba16c8bc6aa424656bbe
mac80211: do not enable ps if 802.1x controlled port is unblocked

If dynamic_ps is disabled, enabling power save before the 4-way
handshake completes may delay the station from being authorized to
send/receive traffic, i.e. increase roaming times. It also may result in
a failed 4-way handshake depending on the AP's timing requirements and
beacon interval, and the station's listen interval.

To fix this, prevent power save from being enabled while the station
isn't authorized and recalculate power save whenever the station's
authorized state changes.

Signed-off-by: Jason Young <a.young.jason@gmail.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/mlme.c