aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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
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')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-calib.c7
3 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 8f3d4bc6a03f..edbb0bfd8cb7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -728,7 +728,7 @@ static int iwl4965_alive_notify(struct iwl_priv *priv)
728 728
729static struct iwl_sensitivity_ranges iwl4965_sensitivity = { 729static struct iwl_sensitivity_ranges iwl4965_sensitivity = {
730 .min_nrg_cck = 97, 730 .min_nrg_cck = 97,
731 .max_nrg_cck = 0, 731 .max_nrg_cck = 0, /* not used, set to 0 */
732 732
733 .auto_corr_min_ofdm = 85, 733 .auto_corr_min_ofdm = 85,
734 .auto_corr_min_ofdm_mrc = 170, 734 .auto_corr_min_ofdm_mrc = 170,
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 0e445a9c6929..85e8bac499a7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -388,7 +388,7 @@ void iwl5000_rts_tx_cmd_flag(struct ieee80211_tx_info *info,
388 388
389static struct iwl_sensitivity_ranges iwl5000_sensitivity = { 389static struct iwl_sensitivity_ranges iwl5000_sensitivity = {
390 .min_nrg_cck = 95, 390 .min_nrg_cck = 95,
391 .max_nrg_cck = 0, 391 .max_nrg_cck = 0, /* not used, set to 0 */
392 .auto_corr_min_ofdm = 90, 392 .auto_corr_min_ofdm = 90,
393 .auto_corr_min_ofdm_mrc = 170, 393 .auto_corr_min_ofdm_mrc = 170,
394 .auto_corr_min_ofdm_x1 = 120, 394 .auto_corr_min_ofdm_x1 = 120,
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;