ath9k: fix tx status reporting
authorFelix Fietkau <nbd@openwrt.org>
Sat, 5 Dec 2009 17:08:05 +0000 (18:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Dec 2009 21:54:59 +0000 (16:54 -0500)
commit815833e7ecf0b9a017315cae6aef4d7cd9517681
tree68cc8441a6735b9b8917c1ea67cdd97b4702665a
parent1814077fd12a9cdf478c10076e9c42094e9d9250
ath9k: fix tx status reporting

This patch fixes a bug in ath9k's tx status check, which
caused mac80211 to consider regularly transmitted unicast frames
as un-acked.
When checking the ts_status field for errors, it needs to be masked
with ATH9K_TXERR_FILT, because this field also contains other fields
like ATH9K_TX_ACKED.
Without this patch, AP mode is pretty much unusable, as hostapd
checks the ACK status for the frames that it injects.

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