ath9k: fix an aggregation start related race condition
authorFelix Fietkau <nbd@openwrt.org>
Mon, 20 Sep 2010 17:35:28 +0000 (19:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Sep 2010 15:05:31 +0000 (11:05 -0400)
commit231c3a1f0630c07a584905507a1cb7b705a56ab7
tree10ad974e6c1b55aa986fe2136fbbea2125e1eff3
parent81ee13ba7ef8c9eaebe91ed06edb844ab6403d4e
ath9k: fix an aggregation start related race condition

A new aggregation session start can be issued by mac80211, even when the
cleanup of the previous session has not completed yet. Since the data structure
for the session is not recreated, this could corrupt the block ack window
and lock up the aggregation session. Fix this by delaying the new session
until the old one has been cleaned up.

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