aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-09-11 13:38:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:32 -0400
commitf2d0d0e2bab7a325071dbaba3bef51c90868e1e6 (patch)
treea61e9e036b0172483105834d064aa7f1a1a252b9 /drivers/net/wireless/iwlwifi/iwl-3945.c
parentc812ee24855e20f43cf211e51e3eb53fe6dc6f1d (diff)
iwlwifi: Adjust blink rate to compensate Clock difference
Adjust led blink rate to compensate on a MAC Clock difference on every HW. Led blink rate analysis showed an average deviation of 0% on 3945, 5% on 4965 HW and 20% on 5000 series and up. Need to compensate on the led on/off time per HW according to the deviation to achieve the desired led frequency The calculation is: (100-averageDeviation)/100 * blinkTime For code efficiency the calculation will be: compensation = (100 - averageDeviation) * 64 / 100 NewBlinkTime = (compensation * BlinkTime) / 64 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-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index e70c5b0af364..33e40c21eb72 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -2894,6 +2894,7 @@ static struct iwl_cfg iwl3945_bg_cfg = {
2894 .mod_params = &iwl3945_mod_params, 2894 .mod_params = &iwl3945_mod_params,
2895 .use_isr_legacy = true, 2895 .use_isr_legacy = true,
2896 .ht_greenfield_support = false, 2896 .ht_greenfield_support = false,
2897 .led_compensation = 64,
2897}; 2898};
2898 2899
2899static struct iwl_cfg iwl3945_abg_cfg = { 2900static struct iwl_cfg iwl3945_abg_cfg = {
@@ -2908,6 +2909,7 @@ static struct iwl_cfg iwl3945_abg_cfg = {
2908 .mod_params = &iwl3945_mod_params, 2909 .mod_params = &iwl3945_mod_params,
2909 .use_isr_legacy = true, 2910 .use_isr_legacy = true,
2910 .ht_greenfield_support = false, 2911 .ht_greenfield_support = false,
2912 .led_compensation = 64,
2911}; 2913};
2912 2914
2913struct pci_device_id iwl3945_hw_card_ids[] = { 2915struct pci_device_id iwl3945_hw_card_ids[] = {