ath9k: fix tx status reporting
commit0f77b958dccf9d3b59d986ea160f84b50c646712
authorFelix Fietkau <nbd@openwrt.org>
Wed, 16 Dec 2009 16:51:44 +0000 (16 11:51 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:05:23 +0000 (18 14:05 -0800)
tree0f27f8504c20bcb4f5c2618c87224204bb01b16d
parente82a3a2db53b6df3a211c7b90c793d61fcb6ddae
ath9k: fix tx status reporting

This is a backport of upstream commit: e8c6342d989e241513baeba4b05a04b6b1f3bc8b

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: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/xmit.c