diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-29 12:57:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 15:42:31 -0400 |
commit | 3459731a39894e5377283b3ccf2fede54e19aae1 (patch) | |
tree | ca1816f4eea7dfb4fa12d6207a08c6e072cd259c /drivers/net/wireless/ath/ath9k | |
parent | 2a36a0ec1550ffb4d608134e2504a6a67d1d1740 (diff) |
ath9k: fix checks for first subframe delimiter padding
The commit "ath9k_hw: Fix exceed transmission burst-time of 5GHz" added
a padding of 60 delimiters on the first subframe to work around an issue
on AR9380, but it lacked the checks to prevent it from being applied to
pre-AR9380, enterprise AR9380 or AR9580+
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/reg.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h index 17a272f4d8d6..5d34381c44c3 100644 --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h | |||
@@ -1132,7 +1132,7 @@ enum { | |||
1132 | #define AR_INTR_PRIO_ASYNC_ENABLE (AR_SREV_9340(ah) ? 0x4094 : 0x40d4) | 1132 | #define AR_INTR_PRIO_ASYNC_ENABLE (AR_SREV_9340(ah) ? 0x4094 : 0x40d4) |
1133 | #define AR_ENT_OTP 0x40d8 | 1133 | #define AR_ENT_OTP 0x40d8 |
1134 | #define AR_ENT_OTP_CHAIN2_DISABLE 0x00020000 | 1134 | #define AR_ENT_OTP_CHAIN2_DISABLE 0x00020000 |
1135 | #define AR_ENT_OTP_MPSD 0x00800000 | 1135 | #define AR_ENT_OTP_MIN_PKT_SIZE_DISABLE 0x00800000 |
1136 | 1136 | ||
1137 | #define AR_CH0_BB_DPLL1 0x16180 | 1137 | #define AR_CH0_BB_DPLL1 0x16180 |
1138 | #define AR_CH0_BB_DPLL1_REFDIV 0xF8000000 | 1138 | #define AR_CH0_BB_DPLL1_REFDIV 0xF8000000 |
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 68066c56e4e5..29bcc55a6f9e 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -709,7 +709,8 @@ static int ath_compute_num_delims(struct ath_softc *sc, struct ath_atx_tid *tid, | |||
709 | * Add delimiter when using RTS/CTS with aggregation | 709 | * Add delimiter when using RTS/CTS with aggregation |
710 | * and non enterprise AR9003 card | 710 | * and non enterprise AR9003 card |
711 | */ | 711 | */ |
712 | if (first_subfrm) | 712 | if (first_subfrm && !AR_SREV_9580_10_OR_LATER(sc->sc_ah) && |
713 | (sc->sc_ah->ent_mode & AR_ENT_OTP_MIN_PKT_SIZE_DISABLE)) | ||
713 | ndelim = max(ndelim, FIRST_DESC_NDELIMS); | 714 | ndelim = max(ndelim, FIRST_DESC_NDELIMS); |
714 | 715 | ||
715 | /* | 716 | /* |