diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-20 21:00:57 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-10-20 21:00:57 +0000 |
commit | d9b732a591363add1e73be5e1c8d1775b6ca1414 (patch) | |
tree | e3343b1b49a80b8008a353b287e97d2d0119fa49 /package/mac80211/patches | |
parent | db6aaa7bcf46f33344d228409f5106f9c586c38f (diff) | |
download | upstream-d9b732a591363add1e73be5e1c8d1775b6ca1414.tar.gz upstream-d9b732a591363add1e73be5e1c8d1775b6ca1414.tar.bz2 upstream-d9b732a591363add1e73be5e1c8d1775b6ca1414.zip |
ath9k: fix a small bug in the handling of a few tx descriptor flags
SVN-Revision: 23553
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r-- | package/mac80211/patches/550-ath9k_xretry_fix.patch | 25 |
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; |