aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-calib.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-06-12 16:22:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 14:57:50 -0400
commitfe6efb4b423c923fb491a9ca4fa419e843548740 (patch)
tree512bc32f50845699023a244ad5354c4e75431ca5 /drivers/net/wireless/iwlwifi/iwl-calib.c
parent9d67187dbd93df98011f7229f76de25d142b57cc (diff)
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-calib.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-calib.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.c b/drivers/net/wireless/iwlwifi/iwl-calib.c
index a5d63672ad39..f8bf592e939c 100644
--- a/drivers/net/wireless/iwlwifi/iwl-calib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-calib.c
@@ -251,12 +251,7 @@ static int iwl_sens_energy_cck(struct iwl_priv *priv,
251 251
252 /* increase energy threshold (reduce nrg value) 252 /* increase energy threshold (reduce nrg value)
253 * to decrease sensitivity */ 253 * to decrease sensitivity */
254 if (data->nrg_th_cck > 254 data->nrg_th_cck = data->nrg_th_cck - NRG_STEP_CCK;
255 (ranges->max_nrg_cck + NRG_STEP_CCK))
256 data->nrg_th_cck = data->nrg_th_cck
257 - NRG_STEP_CCK;
258 else
259 data->nrg_th_cck = ranges->max_nrg_cck;
260 /* Else if we got fewer than desired, increase sensitivity */ 255 /* Else if we got fewer than desired, increase sensitivity */
261 } else if (false_alarms < min_false_alarms) { 256 } else if (false_alarms < min_false_alarms) {
262 data->nrg_curr_state = IWL_FA_TOO_FEW; 257 data->nrg_curr_state = IWL_FA_TOO_FEW;