diff options
author | Ben Cahill <ben.m.cahill@intel.com> | 2010-02-05 14:33:46 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-08 16:50:58 -0500 |
commit | d4fe5ac9e04e6e175a7bd7e29844b351533be591 (patch) | |
tree | bb29b50196723739ffd77096f7e6215358127777 /drivers/net/wireless/iwlwifi/iwl-6000.c | |
parent | 19885c4fbd79439efd6b3798bfb73f2f30e27104 (diff) |
iwlwifi: Add chain noise scaling factor
6x50 device requires a different scaling factor for Rx gain values sent to
device via PHY_CALIBRATION_CMD (CHAIN_NOISE_GAIN_CMD). Rather than create
a new iwlXXXX_gain_computation() function, add new chain_noise_scale member
to struct iwl_cfg, and keep using iwl5000_gain_computation().
Signed-off-by: Ben Cahill <ben.m.cahill@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-6000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index a9f8551e0e40..17198253b0bc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -324,6 +324,7 @@ struct iwl_cfg iwl6000i_2agn_cfg = { | |||
324 | .adv_thermal_throttle = true, | 324 | .adv_thermal_throttle = true, |
325 | .support_ct_kill_exit = true, | 325 | .support_ct_kill_exit = true, |
326 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 326 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
327 | .chain_noise_scale = 1000, | ||
327 | }; | 328 | }; |
328 | 329 | ||
329 | struct iwl_cfg iwl6000i_2abg_cfg = { | 330 | struct iwl_cfg iwl6000i_2abg_cfg = { |
@@ -354,6 +355,7 @@ struct iwl_cfg iwl6000i_2abg_cfg = { | |||
354 | .adv_thermal_throttle = true, | 355 | .adv_thermal_throttle = true, |
355 | .support_ct_kill_exit = true, | 356 | .support_ct_kill_exit = true, |
356 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 357 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
358 | .chain_noise_scale = 1000, | ||
357 | }; | 359 | }; |
358 | 360 | ||
359 | struct iwl_cfg iwl6000i_2bg_cfg = { | 361 | struct iwl_cfg iwl6000i_2bg_cfg = { |
@@ -384,6 +386,7 @@ struct iwl_cfg iwl6000i_2bg_cfg = { | |||
384 | .adv_thermal_throttle = true, | 386 | .adv_thermal_throttle = true, |
385 | .support_ct_kill_exit = true, | 387 | .support_ct_kill_exit = true, |
386 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 388 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
389 | .chain_noise_scale = 1000, | ||
387 | }; | 390 | }; |
388 | 391 | ||
389 | struct iwl_cfg iwl6050_2agn_cfg = { | 392 | struct iwl_cfg iwl6050_2agn_cfg = { |
@@ -415,6 +418,7 @@ struct iwl_cfg iwl6050_2agn_cfg = { | |||
415 | .adv_thermal_throttle = true, | 418 | .adv_thermal_throttle = true, |
416 | .support_ct_kill_exit = true, | 419 | .support_ct_kill_exit = true, |
417 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 420 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
421 | .chain_noise_scale = 1500, | ||
418 | }; | 422 | }; |
419 | 423 | ||
420 | struct iwl_cfg iwl6050_2abg_cfg = { | 424 | struct iwl_cfg iwl6050_2abg_cfg = { |
@@ -445,6 +449,7 @@ struct iwl_cfg iwl6050_2abg_cfg = { | |||
445 | .adv_thermal_throttle = true, | 449 | .adv_thermal_throttle = true, |
446 | .support_ct_kill_exit = true, | 450 | .support_ct_kill_exit = true, |
447 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 451 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
452 | .chain_noise_scale = 1500, | ||
448 | }; | 453 | }; |
449 | 454 | ||
450 | struct iwl_cfg iwl6000_3agn_cfg = { | 455 | struct iwl_cfg iwl6000_3agn_cfg = { |
@@ -476,6 +481,7 @@ struct iwl_cfg iwl6000_3agn_cfg = { | |||
476 | .adv_thermal_throttle = true, | 481 | .adv_thermal_throttle = true, |
477 | .support_ct_kill_exit = true, | 482 | .support_ct_kill_exit = true, |
478 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 483 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
484 | .chain_noise_scale = 1000, | ||
479 | }; | 485 | }; |
480 | 486 | ||
481 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); | 487 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); |