diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-10-09 16:20:24 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:47:58 -0400 |
commit | 55036d6602679fb88dd7b1c19bb7203a0213b684 (patch) | |
tree | 76c20e42bf6c31cd7fee1cd8b748d2b63c2d6a3c /drivers/net/wireless/iwlwifi/iwl-calib.c | |
parent | bd35f150823c21000f4c0f029abb258bc1ae3b5f (diff) |
iwlwifi: additional items in sensitivity range table
Add more items to sensitivity range table to avoid using hardcoded values.
Initialize the table per device since unique per device information is
required to perform sensitivity calibration.
additional items in sensitivity range table:
.barker_corr_th_min: Barker correlation threshold minimum
.barker_corr_th_min_mrc: Barker correlation threshold minimum for MRC
.nrg_th_cca: Energy threshold for Clear Channel Assessment
Barker codes are a technique used in WLAN encoding for transmission.
MRC is "Maximal Ratio Combining", a technique for optimally combining the
signals from 2 or more receivers to achieve a better signal.
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.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.c b/drivers/net/wireless/iwlwifi/iwl-calib.c index 69a80d7c2e44..1f801eb9fbff 100644 --- a/drivers/net/wireless/iwlwifi/iwl-calib.c +++ b/drivers/net/wireless/iwlwifi/iwl-calib.c | |||
@@ -447,11 +447,11 @@ static int iwl_sensitivity_write(struct iwl_priv *priv) | |||
447 | cpu_to_le16((u16)data->nrg_th_ofdm); | 447 | cpu_to_le16((u16)data->nrg_th_ofdm); |
448 | 448 | ||
449 | cmd.table[HD_BARKER_CORR_TH_ADD_MIN_INDEX] = | 449 | cmd.table[HD_BARKER_CORR_TH_ADD_MIN_INDEX] = |
450 | cpu_to_le16(190); | 450 | cpu_to_le16(data->barker_corr_th_min); |
451 | cmd.table[HD_BARKER_CORR_TH_ADD_MIN_MRC_INDEX] = | 451 | cmd.table[HD_BARKER_CORR_TH_ADD_MIN_MRC_INDEX] = |
452 | cpu_to_le16(390); | 452 | cpu_to_le16(data->barker_corr_th_min_mrc); |
453 | cmd.table[HD_OFDM_ENERGY_TH_IN_INDEX] = | 453 | cmd.table[HD_OFDM_ENERGY_TH_IN_INDEX] = |
454 | cpu_to_le16(62); | 454 | cpu_to_le16(data->nrg_th_cca); |
455 | 455 | ||
456 | IWL_DEBUG_CALIB(priv, "ofdm: ac %u mrc %u x1 %u mrc_x1 %u thresh %u\n", | 456 | IWL_DEBUG_CALIB(priv, "ofdm: ac %u mrc %u x1 %u mrc_x1 %u thresh %u\n", |
457 | data->auto_corr_ofdm, data->auto_corr_ofdm_mrc, | 457 | data->auto_corr_ofdm, data->auto_corr_ofdm_mrc, |
@@ -524,6 +524,9 @@ void iwl_init_sensitivity(struct iwl_priv *priv) | |||
524 | data->auto_corr_cck_mrc = ranges->auto_corr_min_cck_mrc; | 524 | data->auto_corr_cck_mrc = ranges->auto_corr_min_cck_mrc; |
525 | data->nrg_th_cck = ranges->nrg_th_cck; | 525 | data->nrg_th_cck = ranges->nrg_th_cck; |
526 | data->nrg_th_ofdm = ranges->nrg_th_ofdm; | 526 | data->nrg_th_ofdm = ranges->nrg_th_ofdm; |
527 | data->barker_corr_th_min = ranges->barker_corr_th_min; | ||
528 | data->barker_corr_th_min_mrc = ranges->barker_corr_th_min_mrc; | ||
529 | data->nrg_th_cca = ranges->nrg_th_cca; | ||
527 | 530 | ||
528 | data->last_bad_plcp_cnt_ofdm = 0; | 531 | data->last_bad_plcp_cnt_ofdm = 0; |
529 | data->last_fa_cnt_ofdm = 0; | 532 | data->last_fa_cnt_ofdm = 0; |