iwlwifi: mvm: rs: avoid TPC while in search cycle
authorEyal Shapira <eyal@wizery.com>
Mon, 21 Apr 2014 18:49:08 +0000 (21:49 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 6 May 2014 17:39:59 +0000 (20:39 +0300)
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 <eyalx.shapira@intel.com>
Reviewed-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c

index 32ac66b5c4a31da7035ae7cf749bebf73fdf9116..6216618c28d38d070bc53ef5910c113ba1c06773 100644 (file)
@@ -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;