Commit 32b01726 authored by Eyal Shapira's avatar Eyal Shapira Committed by Emmanuel Grumbach

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: default avatarEyal Shapira <eyal@wizery.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent c48075d2
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
/* max allowed rate miss before sync LQ cmd */ /* max allowed rate miss before sync LQ cmd */
#define IWL_MISSED_RATE_MAX 15 #define IWL_MISSED_RATE_MAX 15
/* max time to accum history 2 seconds */ #define RS_STAY_IN_COLUMN_TIMEOUT (5*HZ)
#define IWL_RATE_SCALE_FLUSH_INTVL (3*HZ)
static u8 rs_ht_to_legacy[] = { static u8 rs_ht_to_legacy[] = {
[IWL_RATE_1M_INDEX] = IWL_RATE_6M_INDEX, [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,7 +1599,7 @@ static void rs_stay_in_table(struct iwl_lq_sta *lq_sta, bool force_search)
flush_interval_passed = flush_interval_passed =
time_after(jiffies, time_after(jiffies,
(unsigned long)(lq_sta->flush_timer + (unsigned long)(lq_sta->flush_timer +
IWL_RATE_SCALE_FLUSH_INTVL)); RS_STAY_IN_COLUMN_TIMEOUT));
/* /*
* Check if we should allow search for new modulation mode. * Check if we should allow search for new modulation mode.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment