diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-07-14 20:14:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 15:05:17 -0400 |
commit | c41304653e120749dae8b04332b92ffb5f4dbbfd (patch) | |
tree | 2639ec31d188378d5a85345512d616eafb353433 | |
parent | ddf4a2db72c1073b31d0ad28911d137b1745cfca (diff) |
ath9k: Use probe interval instead of rssi reduce interval
Get rid of rssi reduce interval.
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.h | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 731967c74a15..a97dd7b6b706 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -148,7 +148,6 @@ static const struct ath_rate_table ar5416_11na_ratetable = { | |||
148 | 4, 23, 40, 41, 41, 148400 }, | 148 | 4, 23, 40, 41, 41, 148400 }, |
149 | }, | 149 | }, |
150 | 50, /* probe interval */ | 150 | 50, /* probe interval */ |
151 | 50, /* rssi reduce interval */ | ||
152 | WLAN_RC_HT_FLAG, /* Phy rates allowed initially */ | 151 | WLAN_RC_HT_FLAG, /* Phy rates allowed initially */ |
153 | }; | 152 | }; |
154 | 153 | ||
@@ -298,7 +297,6 @@ static const struct ath_rate_table ar5416_11ng_ratetable = { | |||
298 | 8, 27, 44, 45, 45, 148400 }, | 297 | 8, 27, 44, 45, 45, 148400 }, |
299 | }, | 298 | }, |
300 | 50, /* probe interval */ | 299 | 50, /* probe interval */ |
301 | 50, /* rssi reduce interval */ | ||
302 | WLAN_RC_HT_FLAG, /* Phy rates allowed initially */ | 300 | WLAN_RC_HT_FLAG, /* Phy rates allowed initially */ |
303 | }; | 301 | }; |
304 | 302 | ||
@@ -331,7 +329,6 @@ static const struct ath_rate_table ar5416_11a_ratetable = { | |||
331 | 4, 7, 0 }, | 329 | 4, 7, 0 }, |
332 | }, | 330 | }, |
333 | 50, /* probe interval */ | 331 | 50, /* probe interval */ |
334 | 50, /* rssi reduce interval */ | ||
335 | 0, /* Phy rates allowed initially */ | 332 | 0, /* Phy rates allowed initially */ |
336 | }; | 333 | }; |
337 | 334 | ||
@@ -376,7 +373,6 @@ static const struct ath_rate_table ar5416_11g_ratetable = { | |||
376 | 8, 11, 0 }, | 373 | 8, 11, 0 }, |
377 | }, | 374 | }, |
378 | 50, /* probe interval */ | 375 | 50, /* probe interval */ |
379 | 50, /* rssi reduce interval */ | ||
380 | 0, /* Phy rates allowed initially */ | 376 | 0, /* Phy rates allowed initially */ |
381 | }; | 377 | }; |
382 | 378 | ||
@@ -1070,7 +1066,7 @@ static void ath_rc_update_ht(struct ath_softc *sc, | |||
1070 | /* Every so often, we reduce the thresholds | 1066 | /* Every so often, we reduce the thresholds |
1071 | * and PER (different for CCK and OFDM). */ | 1067 | * and PER (different for CCK and OFDM). */ |
1072 | if (now_msec - ath_rc_priv->per_down_time >= | 1068 | if (now_msec - ath_rc_priv->per_down_time >= |
1073 | rate_table->rssi_reduce_interval) { | 1069 | rate_table->probe_interval) { |
1074 | for (rate = 0; rate < size; rate++) { | 1070 | for (rate = 0; rate < size; rate++) { |
1075 | ath_rc_priv->state[rate].per = | 1071 | ath_rc_priv->state[rate].per = |
1076 | 7 * ath_rc_priv->state[rate].per / 8; | 1072 | 7 * ath_rc_priv->state[rate].per / 8; |
diff --git a/drivers/net/wireless/ath/ath9k/rc.h b/drivers/net/wireless/ath/ath9k/rc.h index 6797df0b196d..c794d6c82ad4 100644 --- a/drivers/net/wireless/ath/ath9k/rc.h +++ b/drivers/net/wireless/ath/ath9k/rc.h | |||
@@ -119,7 +119,6 @@ struct ath_rate_table { | |||
119 | u32 max_4ms_framelen; | 119 | u32 max_4ms_framelen; |
120 | } info[RATE_TABLE_SIZE]; | 120 | } info[RATE_TABLE_SIZE]; |
121 | u32 probe_interval; | 121 | u32 probe_interval; |
122 | u32 rssi_reduce_interval; | ||
123 | u8 initial_ratemax; | 122 | u8 initial_ratemax; |
124 | }; | 123 | }; |
125 | 124 | ||