]> 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)
commit07b9bf14e6ddcea52f4d56e80c485cac6c145c7f
tree29d462f6632cc394e08fd463fca21e61d5791646
parentac1026898271d5d33fe8eb4920c4e7220e18c85d
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