]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix dynamic power save for devices with nullfunc support in hw
authorKalle Valo <kalle.valo@nokia.com>
Tue, 27 Oct 2009 15:36:17 +0000 (17:36 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Oct 2009 20:49:18 +0000 (16:49 -0400)
commit9d9485834b39793875c49991a584942d58e4f6c3
tree3c6def8eb28a1ee93a74fcb0c6d48a9fd5d5541d
parent67736f310f268ddb0f6a00f0897dfa3c3bf2a8aa
mac80211: fix dynamic power save for devices with nullfunc support in hw

In TX path it was assumed that dynamic power save works only if
IEEE80211_HW_PS_NULLFUNC_STACK is set. But is not the case, there are
devices which have nullfunc support in hardware but need mac80211
to handle dynamic power save timers, TI's wl1251 is one of them.

The fix is to not check for IEEE80211_HW_PS_NULLFUNC_STACK in
is_dynamic_ps_enabled(), instead check IEEE80211_HW_SUPPORTS_PS and
IEEE80211_HW_SUPPORTS_DYNAMIC_PS flags and act accordingly.

Tested with wl1251.

Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c