From: Eyal Shapira Date: Mon, 21 Apr 2014 18:49:08 +0000 (+0300) Subject: iwlwifi: mvm: rs: avoid TPC while in search cycle X-Git-Tag: v4.14-rc1~7158^2~11^2~7^2~63^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6c8d602dc6302a1564617f7596181ac460f2845;p=platform%2Fkernel%2Flinux-rpi.git iwlwifi: mvm: rs: avoid TPC while in search cycle TPC is a power optimization which should only be attempted when we're in the "stay in column" state after we've locked onto an optimal rate. Signed-off-by: Eyal Shapira Reviewed-by: Eliad Peller Signed-off-by: Emmanuel Grumbach --- diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.c b/drivers/net/wireless/iwlwifi/mvm/rs.c index 32ac66b..6216618 100644 --- a/drivers/net/wireless/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/iwlwifi/mvm/rs.c @@ -2185,7 +2185,8 @@ static void rs_rate_scale_perform(struct iwl_mvm *mvm, break; case RS_ACTION_STAY: /* No change */ - update_lq = rs_tpc_perform(mvm, sta, lq_sta, tbl); + if (lq_sta->rs_state == RS_STATE_STAY_IN_COLUMN) + update_lq = rs_tpc_perform(mvm, sta, lq_sta, tbl); break; default: break;