iwlwifi: no need to refer to max_nrg_cck range value
max_nrg_cck value inside the sensitivity range structure is not needed for sensitivity calibration. Keep the parameter in sensitivity structure but set the value to "0" in case needed in the future implementation. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
9d67187dbd
commit
fe6efb4b42
@@ -251,12 +251,7 @@ static int iwl_sens_energy_cck(struct iwl_priv *priv,
|
||||
|
||||
/* increase energy threshold (reduce nrg value)
|
||||
* to decrease sensitivity */
|
||||
if (data->nrg_th_cck >
|
||||
(ranges->max_nrg_cck + NRG_STEP_CCK))
|
||||
data->nrg_th_cck = data->nrg_th_cck
|
||||
- NRG_STEP_CCK;
|
||||
else
|
||||
data->nrg_th_cck = ranges->max_nrg_cck;
|
||||
data->nrg_th_cck = data->nrg_th_cck - NRG_STEP_CCK;
|
||||
/* Else if we got fewer than desired, increase sensitivity */
|
||||
} else if (false_alarms < min_false_alarms) {
|
||||
data->nrg_curr_state = IWL_FA_TOO_FEW;
|
||||
|
Reference in New Issue
Block a user