]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit70b12f2612a6b352d16342b5952cf9f9de6c1d56
tree29d462f6632cc394e08fd463fca21e61d5791646
parent12d3952fc4a1cd96234bc7023bf7eefeb0bb6355
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