aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-20 21:00:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-20 21:00:57 +0000
commitc7037b7a497da85da25956083014477dc4d2df67 (patch)
tree32ab7897ba900ffd24302bd71daac86f092e9d0a /package
parent645b887b94eccbcb0f5939ff159fd2bf8928975c (diff)
downloadupstream-c7037b7a497da85da25956083014477dc4d2df67.tar.gz
upstream-c7037b7a497da85da25956083014477dc4d2df67.tar.bz2
upstream-c7037b7a497da85da25956083014477dc4d2df67.zip
ath9k: fix a small bug in the handling of a few tx descriptor flags
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23553 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/550-ath9k_xretry_fix.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/mac80211/patches/550-ath9k_xretry_fix.patch b/package/mac80211/patches/550-ath9k_xretry_fix.patch
new file mode 100644
index 0000000000..122be5b2ad
--- /dev/null
+++ b/package/mac80211/patches/550-ath9k_xretry_fix.patch
@@ -0,0 +1,25 @@
+--- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c
++++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
+@@ -237,13 +237,15 @@ static int ar9002_hw_proc_txdesc(struct
+ status = ACCESS_ONCE(ads->ds_txstatus1);
+ if (status & AR_FrmXmitOK)
+ ts->ts_status |= ATH9K_TX_ACKED;
+- if (status & AR_ExcessiveRetries)
+- ts->ts_status |= ATH9K_TXERR_XRETRY;
+- if (status & AR_Filtered)
+- ts->ts_status |= ATH9K_TXERR_FILT;
+- if (status & AR_FIFOUnderrun) {
+- ts->ts_status |= ATH9K_TXERR_FIFO;
+- ath9k_hw_updatetxtriglevel(ah, true);
++ else {
++ if (status & AR_ExcessiveRetries)
++ ts->ts_status |= ATH9K_TXERR_XRETRY;
++ if (status & AR_Filtered)
++ ts->ts_status |= ATH9K_TXERR_FILT;
++ if (status & AR_FIFOUnderrun) {
++ ts->ts_status |= ATH9K_TXERR_FIFO;
++ ath9k_hw_updatetxtriglevel(ah, true);
++ }
+ }
+ if (status & AR_TxTimerExpired)
+ ts->ts_status |= ATH9K_TXERR_TIMER_EXPIRED;