aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-calib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-calib.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-calib.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.c b/drivers/net/wireless/iwlwifi/iwl-calib.c
index a5d63672ad39..13180d6ee2f7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-calib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-calib.c
@@ -86,7 +86,7 @@ int iwl_send_calib_results(struct iwl_priv *priv)
86 86
87 struct iwl_host_cmd hcmd = { 87 struct iwl_host_cmd hcmd = {
88 .id = REPLY_PHY_CALIBRATION_CMD, 88 .id = REPLY_PHY_CALIBRATION_CMD,
89 .meta.flags = CMD_SIZE_HUGE, 89 .flags = CMD_SIZE_HUGE,
90 }; 90 };
91 91
92 for (i = 0; i < IWL_CALIB_MAX; i++) { 92 for (i = 0; i < IWL_CALIB_MAX; i++) {
@@ -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;
@@ -424,7 +419,7 @@ static int iwl_sensitivity_write(struct iwl_priv *priv)
424 struct iwl_host_cmd cmd_out = { 419 struct iwl_host_cmd cmd_out = {
425 .id = SENSITIVITY_CMD, 420 .id = SENSITIVITY_CMD,
426 .len = sizeof(struct iwl_sensitivity_cmd), 421 .len = sizeof(struct iwl_sensitivity_cmd),
427 .meta.flags = CMD_ASYNC, 422 .flags = CMD_ASYNC,
428 .data = &cmd, 423 .data = &cmd,
429 }; 424 };
430 425