aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-07-14 20:13:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-24 15:05:14 -0400
commitdd1901830ca7baaaae2e58f549f770f215c6f3af (patch)
tree1a6e4336c22696858bc39b16c5abf1f828691c97 /drivers/net/wireless/ath/ath9k/main.c
parent0ab216d9727c0728c8b5f9ad627b6955570303d7 (diff)
ath9k: cleanup try count for MRR in rate control
This has no functional change and just cleans up the code to be more legible and removes a useless variable for Multi Rate Retry. For regular frames we use 2 retries for MRR segments [0-2]. For the last MRR segment [3] we use 4. MRR[0] = 2 MRR[1] = 2 MRR[2] = 2 MRR[3] = 4 Cc: Derek Smithies <derek@indranet.co.nz> Cc: Chittajit Mitra <Chittajit.Mitra@Atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 961b0ce6ef3e..19df7882d0d3 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1540,7 +1540,8 @@ void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
1540 hw->max_rates = 4; 1540 hw->max_rates = 4;
1541 hw->channel_change_time = 5000; 1541 hw->channel_change_time = 5000;
1542 hw->max_listen_interval = 10; 1542 hw->max_listen_interval = 10;
1543 hw->max_rate_tries = ATH_11N_TXMAXTRY; 1543 /* Hardware supports 10 but we use 4 */
1544 hw->max_rate_tries = 4;
1544 hw->sta_data_size = sizeof(struct ath_node); 1545 hw->sta_data_size = sizeof(struct ath_node);
1545 hw->vif_data_size = sizeof(struct ath_vif); 1546 hw->vif_data_size = sizeof(struct ath_vif);
1546 1547