ath9k: Set PM field in frame control when in PS mode
commitdc8c4585d2e6f3bf5c9d8c0a6036b591bd3baf2e
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 19 May 2009 14:01:42 +0000 (19 17:01 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:46:33 +0000 (20 14:46 -0400)
treef5d1d1ca8e5c00ada9c46edfffb87eee54ce2c31
parentaa68aeaaff8bbf58e355eb83b7d0c14ce82b2f12
ath9k: Set PM field in frame control when in PS mode

mac80211 does not set PM field for normal data frames, so we need to
update that based on the current PS mode when using PS-Poll
(timeout=0) power save mode.

This allows the AP to remain in sync with our PS state. However, there
is still a potential race condition between PS state changes when
multiple TX queues are used and nullfunc and PS-Poll frames use
different queue. That corner case may need to be handled separately by
changing which queue is used either in ath9k or mac80211.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c