ath9k: fix processing of TX PS null data frames
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 24 Nov 2009 07:53:25 +0000 (02:53 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 28 Nov 2009 20:04:49 +0000 (15:04 -0500)
commite7824a50662f7f79b1a739f705b4d906c31cf221
tree20f92622698f9f07524db55691e0322b298031db
parent6b65b6ad016f048547127946d1afe4ba41c74296
ath9k: fix processing of TX PS null data frames

When mac80211 was telling us to go into Powersave we listened
and immediately turned RX off. This meant hardware would not
see the ACKs from the AP we're associated with and hardware
we'd end up retransmiting the null data frame in a loop
helplessly.

Fix this by keeping track of the transmitted nullfunc frames
and only when we are sure the AP has sent back an ACK do we
go ahead and shut RX off.

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: Vivek Natarajan <Vivek.Natarajan@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/common.h
drivers/net/wireless/ath/ath9k/mac.c
drivers/net/wireless/ath/ath9k/mac.h
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/reg.h
drivers/net/wireless/ath/ath9k/xmit.c