From: Ronald Wahl Date: Mon, 19 Mar 2012 13:37:20 +0000 (+0100) Subject: mac80211: when receiving DTIM disable power-save mode only if it was enabled X-Git-Tag: v3.5-rc1~109^2~487^2^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b12f2612a6b352d16342b5952cf9f9de6c1d56;p=pandora-kernel.git 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 Reviewed-by: Gertjan van Wingerde Signed-off-by: John W. Linville --- Reading git-diff-tree failed