diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-02-19 00:47:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-02-19 00:47:32 +0000 |
commit | 566c5de9de2fd2a46513969ec2c0787b3d9be869 (patch) | |
tree | 8f32aa8b3f4fd9cc84454696e08eb3f992f3f2fb /package/mac80211 | |
parent | 438de160169981243952604f1c84264fc43a1291 (diff) | |
download | upstream-566c5de9de2fd2a46513969ec2c0787b3d9be869.tar.gz upstream-566c5de9de2fd2a46513969ec2c0787b3d9be869.tar.bz2 upstream-566c5de9de2fd2a46513969ec2c0787b3d9be869.zip |
ath9k: fix rate control fallback rate selection - improves throughput and link stability
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19716 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/patches/530-ath9k_rc_fallback.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/package/mac80211/patches/530-ath9k_rc_fallback.patch b/package/mac80211/patches/530-ath9k_rc_fallback.patch new file mode 100644 index 0000000000..1b74eb5b18 --- /dev/null +++ b/package/mac80211/patches/530-ath9k_rc_fallback.patch @@ -0,0 +1,55 @@ +--- a/drivers/net/wireless/ath/ath9k/rc.c ++++ b/drivers/net/wireless/ath/ath9k/rc.c +@@ -668,7 +668,7 @@ static void ath_get_rate(void *priv, str + struct ieee80211_tx_rate *rates = tx_info->control.rates; + struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; + __le16 fc = hdr->frame_control; +- u8 try_per_rate, i = 0, rix, nrix; ++ u8 try_per_rate, i = 0, rix; + int is_probe = 0; + + if (rate_control_send_low(sta, priv_sta, txrc)) +@@ -688,26 +688,25 @@ static void ath_get_rate(void *priv, str + + rate_table = sc->cur_rate_table; + rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe); +- nrix = rix; + + if (is_probe) { + /* set one try for probe rates. For the + * probes don't enable rts */ + ath_rc_rate_set_series(rate_table, &rates[i++], txrc, +- 1, nrix, 0); ++ 1, rix, 0); + + /* Get the next tried/allowed rate. No RTS for the next series + * after the probe rate + */ +- ath_rc_get_lower_rix(rate_table, ath_rc_priv, rix, &nrix); ++ ath_rc_get_lower_rix(rate_table, ath_rc_priv, rix, &rix); + ath_rc_rate_set_series(rate_table, &rates[i++], txrc, +- try_per_rate, nrix, 0); ++ try_per_rate, rix, 0); + + tx_info->flags |= IEEE80211_TX_CTL_RATE_CTRL_PROBE; + } else { + /* Set the choosen rate. No RTS for first series entry. */ + ath_rc_rate_set_series(rate_table, &rates[i++], txrc, +- try_per_rate, nrix, 0); ++ try_per_rate, rix, 0); + } + + /* Fill in the other rates for multirate retry */ +@@ -716,10 +715,10 @@ static void ath_get_rate(void *priv, str + if (i + 1 == 4) + try_per_rate = 8; + +- ath_rc_get_lower_rix(rate_table, ath_rc_priv, rix, &nrix); ++ ath_rc_get_lower_rix(rate_table, ath_rc_priv, rix, &rix); + /* All other rates in the series have RTS enabled */ + ath_rc_rate_set_series(rate_table, &rates[i], txrc, +- try_per_rate, nrix, 1); ++ try_per_rate, rix, 1); + } + + /* |