aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-24 02:27:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-24 02:27:31 +0000
commit9f75c26a70aa66ac498a28fe2d0c17114e7c2e61 (patch)
tree1c9657456ee29303c63240c24178bf006da08eef
parent789ec837e90d2e4e9d2dedd9500fc7ad87c72122 (diff)
downloadupstream-9f75c26a70aa66ac498a28fe2d0c17114e7c2e61.tar.gz
upstream-9f75c26a70aa66ac498a28fe2d0c17114e7c2e61.tar.bz2
upstream-9f75c26a70aa66ac498a28fe2d0c17114e7c2e61.zip
ath9k: improve max rate retry handling
SVN-Revision: 19308
-rw-r--r--package/mac80211/patches/600-ath9k_rc_tries.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/mac80211/patches/600-ath9k_rc_tries.patch b/package/mac80211/patches/600-ath9k_rc_tries.patch
new file mode 100644
index 0000000000..d18fd24a99
--- /dev/null
+++ b/package/mac80211/patches/600-ath9k_rc_tries.patch
@@ -0,0 +1,42 @@
+--- a/drivers/net/wireless/ath/ath9k/init.c
++++ b/drivers/net/wireless/ath/ath9k/init.c
+@@ -645,8 +645,7 @@ void ath9k_set_hw_capab(struct ath_softc
+ hw->max_rates = 4;
+ hw->channel_change_time = 5000;
+ hw->max_listen_interval = 10;
+- /* Hardware supports 10 but we use 4 */
+- hw->max_rate_tries = 4;
++ hw->max_rate_tries = 10;
+ hw->sta_data_size = sizeof(struct ath_node);
+ hw->vif_data_size = sizeof(struct ath_vif);
+
+--- a/drivers/net/wireless/ath/ath9k/rc.c
++++ b/drivers/net/wireless/ath/ath9k/rc.c
+@@ -678,13 +678,13 @@ static void ath_get_rate(void *priv, str
+ * For Multi Rate Retry we use a different number of
+ * retry attempt counts. This ends up looking like this:
+ *
+- * MRR[0] = 2
+- * MRR[1] = 2
+- * MRR[2] = 2
+- * MRR[3] = 4
++ * MRR[0] = 4
++ * MRR[1] = 4
++ * MRR[2] = 4
++ * MRR[3] = 8
+ *
+ */
+- try_per_rate = sc->hw->max_rate_tries;
++ try_per_rate = 4;
+
+ rate_table = sc->cur_rate_table;
+ rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe);
+@@ -714,7 +714,7 @@ static void ath_get_rate(void *priv, str
+ for ( ; i < 4; i++) {
+ /* Use twice the number of tries for the last MRR segment. */
+ if (i + 1 == 4)
+- try_per_rate = 4;
++ try_per_rate = 8;
+
+ ath_rc_get_lower_rix(rate_table, ath_rc_priv, rix, &nrix);
+ /* All other rates in the series have RTS enabled */