diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2011-07-01 18:37:33 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-05 14:42:37 -0400 |
commit | 4f6760b01bda625e9555e16d8e9ba8126a9c9498 (patch) | |
tree | b33630e6ef280e8a4e2fd50113c62be445db5248 /drivers/net | |
parent | 06a86ddbf557cb8a0f7ded54e872e9d456002d52 (diff) | |
download | kernel_samsung_crespo-4f6760b01bda625e9555e16d8e9ba8126a9c9498.zip kernel_samsung_crespo-4f6760b01bda625e9555e16d8e9ba8126a9c9498.tar.gz kernel_samsung_crespo-4f6760b01bda625e9555e16d8e9ba8126a9c9498.tar.bz2 |
ath9k: Fix tx throughput drops for AR9003 chips with AES encryption
While sending aggregated frames in AES, the AR5416 chips
required additional padding b/w subframes. This workaround
is not needed for edma (AR9003 family) chips. With this patch
~4Mbps thoughput improvement was observed in clear environment.
Cc: stable@kernel.org
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 3779b89..33443bc 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -671,7 +671,8 @@ static int ath_compute_num_delims(struct ath_softc *sc, struct ath_atx_tid *tid, * TODO - this could be improved to be dependent on the rate. * The hardware can keep up at lower rates, but not higher rates */ - if (fi->keyix != ATH9K_TXKEYIX_INVALID) + if ((fi->keyix != ATH9K_TXKEYIX_INVALID) && + !(sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA)) ndelim += ATH_AGGR_ENCRYPTDELIM; /* |