aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k
diff options
context:
space:
mode:
authorBjörn Smedman <bjorn.smedman@venatech.se>2010-10-10 16:51:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-10-11 15:04:24 -0400
commita8909cfb1832ac623142898df2a9374722cfe68f (patch)
treee2246e34e5535564a2b51f6ca45392738ece345b /drivers/net/wireless/ath/ath9k
parentebd022873aa61937603d2c4dfea19ce63ea1a3c8 (diff)
ath9k: built-in rate control A-MPDU fix
This patch attempts to ensure that ath9k's built-in rate control algorithm does not rely on the value of the ampdu_len and ampdu_ack_len tx status fields unless the IEEE80211_TX_STAT_AMPDU flag is set. This patch has not been tested. Cc: <stable@kernel.org> Signed-off-by: Björn Smedman <bjorn.smedman@venatech.se> Acked-by: Felix Fietkau <nbd@openwrt.org> 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/rc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c
index ce1cd6d85847..13f9e88e1187 100644
--- a/drivers/net/wireless/ath/ath9k/rc.c
+++ b/drivers/net/wireless/ath/ath9k/rc.c
@@ -1375,6 +1375,12 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband,
1375 if (tx_info->flags & IEEE80211_TX_STAT_TX_FILTERED) 1375 if (tx_info->flags & IEEE80211_TX_STAT_TX_FILTERED)
1376 return; 1376 return;
1377 1377
1378 if (!(tx_info->flags & IEEE80211_TX_STAT_AMPDU)) {
1379 tx_info->status.ampdu_ack_len =
1380 (tx_info->flags & IEEE80211_TX_STAT_ACK ? 1 : 0);
1381 tx_info->status.ampdu_len = 1;
1382 }
1383
1378 /* 1384 /*
1379 * If an underrun error is seen assume it as an excessive retry only 1385 * If an underrun error is seen assume it as an excessive retry only
1380 * if max frame trigger level has been reached (2 KB for singel stream, 1386 * if max frame trigger level has been reached (2 KB for singel stream,