diff options
author | Eyal Shapira <eyal@wizery.com> | 2013-11-22 02:41:38 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2013-12-09 15:29:47 -0500 |
commit | 32b01726b944ea21e9c9dacfb34753a8e63ba877 (patch) | |
tree | d4d13c3dcb4015246237bdb1e50eb5d642f4653e | |
parent | c48075d27db571ff1deeb6a0fda7bf1f0abeee4c (diff) |
iwlwifi: mvm: rs: increase stay in column timeout
Remain in the same Tx modulation (i.e. column) for a longer
time before starting a search cycle for a better modulation.
This has been shown to give better results.
Also change the name of the timeout define to better match its
description.
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/rs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.c b/drivers/net/wireless/iwlwifi/mvm/rs.c index a289b774ba6b..9249e52dafc9 100644 --- a/drivers/net/wireless/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/iwlwifi/mvm/rs.c | |||
@@ -52,8 +52,8 @@ | |||
52 | 52 | ||
53 | /* max allowed rate miss before sync LQ cmd */ | 53 | /* max allowed rate miss before sync LQ cmd */ |
54 | #define IWL_MISSED_RATE_MAX 15 | 54 | #define IWL_MISSED_RATE_MAX 15 |
55 | /* max time to accum history 2 seconds */ | 55 | #define RS_STAY_IN_COLUMN_TIMEOUT (5*HZ) |
56 | #define IWL_RATE_SCALE_FLUSH_INTVL (3*HZ) | 56 | |
57 | 57 | ||
58 | static u8 rs_ht_to_legacy[] = { | 58 | static u8 rs_ht_to_legacy[] = { |
59 | [IWL_RATE_1M_INDEX] = IWL_RATE_6M_INDEX, | 59 | [IWL_RATE_1M_INDEX] = IWL_RATE_6M_INDEX, |
@@ -1599,7 +1599,7 @@ static void rs_stay_in_table(struct iwl_lq_sta *lq_sta, bool force_search) | |||
1599 | flush_interval_passed = | 1599 | flush_interval_passed = |
1600 | time_after(jiffies, | 1600 | time_after(jiffies, |
1601 | (unsigned long)(lq_sta->flush_timer + | 1601 | (unsigned long)(lq_sta->flush_timer + |
1602 | IWL_RATE_SCALE_FLUSH_INTVL)); | 1602 | RS_STAY_IN_COLUMN_TIMEOUT)); |
1603 | 1603 | ||
1604 | /* | 1604 | /* |
1605 | * Check if we should allow search for new modulation mode. | 1605 | * Check if we should allow search for new modulation mode. |