summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-02-01 15:26:30 +0000
committeradrian <adrian@FreeBSD.org>2011-02-01 15:26:30 +0000
commite42de5418c3f0135f610990e2649f1d29613cec9 (patch)
tree0ae1f16d5cce8d8312d6a28f03aa3c9fa0de9b5d
parentcab1b4d893ce4fd52a044414a075f596a9c6ccc6 (diff)
downloadFreeBSD-src-e42de5418c3f0135f610990e2649f1d29613cec9.zip
FreeBSD-src-e42de5418c3f0135f610990e2649f1d29613cec9.tar.gz
Just to be sure, make sure the MCS rates are allowed for TX.
Approved by: rpaulo@
-rw-r--r--sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c b/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
index 24e7bcf..b3597de 100644
--- a/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
+++ b/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
@@ -149,8 +149,10 @@ ar5416StopTxDma(struct ath_hal *ah, u_int q)
#define VALID_TX_RATES \
((1<<0x0b)|(1<<0x0f)|(1<<0x0a)|(1<<0x0e)|(1<<0x09)|(1<<0x0d)|\
(1<<0x08)|(1<<0x0c)|(1<<0x1b)|(1<<0x1a)|(1<<0x1e)|(1<<0x19)|\
- (1<<0x1d)|(1<<0x18)|(1<<0x1c))
-#define isValidTxRate(_r) ((1<<(_r)) & VALID_TX_RATES)
+ (1<<0x1d)|(1<<0x18)|(1<<0x1c)|(1<<0x01)|(1<<0x02)|(1<<0x03)|\
+ (1<<0x04)|(1<<0x05)|(1<<0x06)|(1<<0x07)|(1<<0x00))
+/* NB: accept HT rates */
+#define isValidTxRate(_r) ((1<<((_r) & 0x7f)) & VALID_TX_RATES)
HAL_BOOL
ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
OpenPOWER on IntegriCloud