diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-11-20 12:05:09 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-23 17:05:38 -0500 |
commit | 3681165235aae95a2e6d5407bb4e9426d68a37dd (patch) | |
tree | 162beb7bf4a3f1121dff8528d660d1bb940d214a /drivers/net/wireless/iwlwifi/iwl-led.c | |
parent | 2d237f71b00bdc9044b5853d79f8cbef6c8df3ed (diff) | |
download | op-kernel-dev-3681165235aae95a2e6d5407bb4e9426d68a37dd.zip op-kernel-dev-3681165235aae95a2e6d5407bb4e9426d68a37dd.tar.gz |
iwlwifi: remove reset led_tpt from iwl_leds_init()
Current blinking rate is calculated based on the difference between
current tx/rx byte counts and priv->led_tpt.
priv->led_tpt should not get reset in iwl_leds_init(), this function can be
called by bring interface "up" or "down", or when uCode sysassert occurred.
resetting the led_tpt parameter will introduce incorrect led blinking behavior.
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-led.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-led.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c index 478c905..46c7a95 100644 --- a/drivers/net/wireless/iwlwifi/iwl-led.c +++ b/drivers/net/wireless/iwlwifi/iwl-led.c @@ -219,7 +219,6 @@ EXPORT_SYMBOL(iwl_leds_background); void iwl_leds_init(struct iwl_priv *priv) { priv->last_blink_rate = 0; - priv->led_tpt = 0; priv->last_blink_time = 0; priv->allow_blinking = 0; } |