]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: when receiving DTIM disable power-save mode only if it was enabled
authorRonald Wahl <ronald.wahl@raritan.com>
Mon, 19 Mar 2012 13:37:20 +0000 (14:37 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 20:12:30 +0000 (16:12 -0400)
commite1c4c7cf39b1300ea1af75383be3a356e7216219
tree29d462f6632cc394e08fd463fca21e61d5791646
parent8e2cd05de846fd0f10e634223fe72116846f7f3c
mac80211: when receiving DTIM disable power-save mode only if it was enabled

When receiving DTIM we currently disable power save mode in the
hardware unconditionally, i.e. also when the hardware was not sleeping.
This causes trouble with at least one wireless chipset (Ralink RT3572).
When the hardware is not sleeping and we send a wakeup command (e.g.
this happens after a scan) then a significant decrease of the link
quality or a disconnect may occur.
Disabling power save mode only when it was enabled prevents this issue.

Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
Reviewed-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c