Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183903
b: refs/heads/master
c: 6589651
h: refs/heads/master
i:
  183901: 579b406
  183899: 4cc0bc3
  183895: 205ad56
  183887: 9afe648
  183871: 8794050
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jan 25, 2010
1 parent 0a4d67e commit c864ec1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff27fabe62d288038b36f41ac6a2190ed7d15993
refs/heads/master: 658965107e2a45a1a4297cb494adc55797dd9ad1
3 changes: 1 addition & 2 deletions trunk/drivers/net/wireless/ath/ath9k/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
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);

Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/ath/ath9k/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,13 +678,13 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
* 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);
Expand Down Expand Up @@ -714,7 +714,7 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
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 */
Expand Down

0 comments on commit c864ec1

Please sign in to comment.