mac80211: fix a WARN_ON in client mode
[openwrt.git] / package / mac80211 / patches / 600-ath9k_rc_tries.patch
1 --- a/drivers/net/wireless/ath/ath9k/init.c
2 +++ b/drivers/net/wireless/ath/ath9k/init.c
3 @@ -645,8 +645,7 @@ void ath9k_set_hw_capab(struct ath_softc
4 hw->max_rates = 4;
5 hw->channel_change_time = 5000;
6 hw->max_listen_interval = 10;
7 - /* Hardware supports 10 but we use 4 */
8 - hw->max_rate_tries = 4;
9 + hw->max_rate_tries = 10;
10 hw->sta_data_size = sizeof(struct ath_node);
11 hw->vif_data_size = sizeof(struct ath_vif);
12
13 --- a/drivers/net/wireless/ath/ath9k/rc.c
14 +++ b/drivers/net/wireless/ath/ath9k/rc.c
15 @@ -678,13 +678,13 @@ static void ath_get_rate(void *priv, str
16 * For Multi Rate Retry we use a different number of
17 * retry attempt counts. This ends up looking like this:
18 *
19 - * MRR[0] = 2
20 - * MRR[1] = 2
21 - * MRR[2] = 2
22 - * MRR[3] = 4
23 + * MRR[0] = 4
24 + * MRR[1] = 4
25 + * MRR[2] = 4
26 + * MRR[3] = 8
27 *
28 */
29 - try_per_rate = sc->hw->max_rate_tries;
30 + try_per_rate = 4;
31
32 rate_table = sc->cur_rate_table;
33 rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe);
34 @@ -714,7 +714,7 @@ static void ath_get_rate(void *priv, str
35 for ( ; i < 4; i++) {
36 /* Use twice the number of tries for the last MRR segment. */
37 if (i + 1 == 4)
38 - try_per_rate = 4;
39 + try_per_rate = 8;
40
41 ath_rc_get_lower_rix(rate_table, ath_rc_priv, rix, &nrix);
42 /* All other rates in the series have RTS enabled */
This page took 0.044493 seconds and 5 git commands to generate.