aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-09-25 17:24:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:36 -0400
commitd8c07e7a84950b5fdef424c6dabe6bed3a9ffa19 (patch)
tree8286d65e226654bf403c0ac551f3ef16fd07087b /drivers/net/wireless/iwlwifi/iwl-4965.c
parent2b396a120922062a0ffd2648be3ed7e72ff83620 (diff)
iwlwifi: Chain Noise Calibration for 6000 series
Adding support of Chain Noise Calibration for 6000 series NICs. 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-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index b5111702856a..4e492c154f88 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -495,14 +495,15 @@ static void iwl4965_chain_noise_reset(struct iwl_priv *priv)
495static void iwl4965_gain_computation(struct iwl_priv *priv, 495static void iwl4965_gain_computation(struct iwl_priv *priv,
496 u32 *average_noise, 496 u32 *average_noise,
497 u16 min_average_noise_antenna_i, 497 u16 min_average_noise_antenna_i,
498 u32 min_average_noise) 498 u32 min_average_noise,
499 u8 default_chain)
499{ 500{
500 int i, ret; 501 int i, ret;
501 struct iwl_chain_noise_data *data = &priv->chain_noise_data; 502 struct iwl_chain_noise_data *data = &priv->chain_noise_data;
502 503
503 data->delta_gain_code[min_average_noise_antenna_i] = 0; 504 data->delta_gain_code[min_average_noise_antenna_i] = 0;
504 505
505 for (i = 0; i < NUM_RX_CHAINS; i++) { 506 for (i = default_chain; i < NUM_RX_CHAINS; i++) {
506 s32 delta_g = 0; 507 s32 delta_g = 0;
507 508
508 if (!(data->disconn_array[i]) && 509 if (!(data->disconn_array[i]) &&
@@ -2356,6 +2357,7 @@ struct iwl_cfg iwl4965_agn_cfg = {
2356 .ht_greenfield_support = false, 2357 .ht_greenfield_support = false,
2357 .broken_powersave = true, 2358 .broken_powersave = true,
2358 .led_compensation = 61, 2359 .led_compensation = 61,
2360 .chain_noise_num_beacons = IWL4965_CAL_NUM_BEACONS,
2359}; 2361};
2360 2362
2361/* Module firmware */ 2363/* Module firmware */