ath9k: fix aggregation session lockup
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Jul 2014 13:40:54 +0000 (15:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Jul 2014 17:03:11 +0000 (13:03 -0400)
commitc01fac1c77a00227f706a1654317023e3f4ac7f0
tree897ff1b3fd10b17ae271da81b41baa38af56e6e9
parent3b8de0749276abcb86bd7a6ca6691769a4ba7987
ath9k: fix aggregation session lockup

If an aggregation session fails, frames still end up in the driver queue
with IEEE80211_TX_CTL_AMPDU set.
This causes tx for the affected station/tid to stall, since
ath_tx_get_tid_subframe returning packets to send.

Fix this by clearing IEEE80211_TX_CTL_AMPDU as long as no aggregation
session is running.

Cc: stable@vger.kernel.org
Reported-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c