diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2008-11-20 07:21:18 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-26 15:47:40 +0100 |
commit | 7ac47010a444d9f4285cf1ae06780633a112489b (patch) | |
tree | 1c2e739ceb5ef702efbd02551767d43f7da369ee /drivers/net/wireless/ath9k/rc.c | |
parent | iwlwifi: TX update chicken bits (diff) | |
download | linux-7ac47010a444d9f4285cf1ae06780633a112489b.tar.xz linux-7ac47010a444d9f4285cf1ae06780633a112489b.zip |
ath9k: Dont update rate control for every AMPDU
Update the rate control only with the tx status of first
AMPDU of an aggregation. This patch fixes frequent drops
in throughput.
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath9k/rc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/rc.c b/drivers/net/wireless/ath9k/rc.c index e118824625ba..7d1913d48d31 100644 --- a/drivers/net/wireless/ath9k/rc.c +++ b/drivers/net/wireless/ath9k/rc.c @@ -1413,7 +1413,8 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband, an = (struct ath_node *)sta->drv_priv; final_ts_idx = tx_info_priv->tx.ts_rateindex; - if (!an || !priv_sta || !ieee80211_is_data(fc)) + if (!an || !priv_sta || !ieee80211_is_data(fc) || + !tx_info_priv->update_rc) goto exit; if (tx_info_priv->tx.ts_status & ATH9K_TXERR_FILT) |