ath9k: avoid sending a-mpdu packets to sleeping stations
commit9af73cf7f356801e6e5837eb338d197de5c8f37c
authorFelix Fietkau <nbd@openwrt.org>
Wed, 10 Aug 2011 21:23:35 +0000 (10 15:23 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 12 Aug 2011 17:45:04 +0000 (12 13:45 -0400)
tree1f77aeb3ed6ca2057c3444fb1d25c7e65752f7e7
parent9946ecfb510462e59afddb2a992da804d58b6bcd
ath9k: avoid sending a-mpdu packets to sleeping stations

If the driver gets a tx status report for an A-MPDU sent to a station that
just went to sleep, that leaves a race condition where this tx status can
trigger another A-MPDU transmission.
To fix this, check if the station is sleeping before queueing the tid.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c