diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-11-20 15:04:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-23 17:05:30 -0500 |
commit | d5f4cf71f7b70e13f96cc8aac65b390707d5d80b (patch) | |
tree | e79c9c0608f439c5e854981857a3f3ba9430edb6 /drivers | |
parent | 74ba67edfcb235c0415a62d37493866c8380dc1d (diff) |
iwlwifi: control led while update tx/rx bytes counts
LED blinking rate is based on tx/rx traffic, the most reasonable place
to do it is after update the traffic byte counts
This fixes the recent LED blinking breakage on 3945 introduced by "iwlwifi:
separate led function from statistic notification"
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Tested-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index a4e8db35a559..c41ec5e258b1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1078,7 +1078,6 @@ static void iwl_irq_tasklet_legacy(struct iwl_priv *priv) | |||
1078 | if (inta & (CSR_INT_BIT_FH_RX | CSR_INT_BIT_SW_RX)) { | 1078 | if (inta & (CSR_INT_BIT_FH_RX | CSR_INT_BIT_SW_RX)) { |
1079 | iwl_rx_handle(priv); | 1079 | iwl_rx_handle(priv); |
1080 | priv->isr_stats.rx++; | 1080 | priv->isr_stats.rx++; |
1081 | iwl_leds_background(priv); | ||
1082 | handled |= (CSR_INT_BIT_FH_RX | CSR_INT_BIT_SW_RX); | 1081 | handled |= (CSR_INT_BIT_FH_RX | CSR_INT_BIT_SW_RX); |
1083 | } | 1082 | } |
1084 | 1083 | ||
@@ -1287,7 +1286,6 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
1287 | CSR_INT_PERIODIC_ENA); | 1286 | CSR_INT_PERIODIC_ENA); |
1288 | 1287 | ||
1289 | priv->isr_stats.rx++; | 1288 | priv->isr_stats.rx++; |
1290 | iwl_leds_background(priv); | ||
1291 | } | 1289 | } |
1292 | 1290 | ||
1293 | /* This "Tx" DMA channel is used only for loading uCode */ | 1291 | /* This "Tx" DMA channel is used only for loading uCode */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index c25cab5d0451..7ac6b369890a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -3187,6 +3187,7 @@ void iwl_update_stats(struct iwl_priv *priv, bool is_tx, __le16 fc, u16 len) | |||
3187 | stats->data_cnt++; | 3187 | stats->data_cnt++; |
3188 | stats->data_bytes += len; | 3188 | stats->data_bytes += len; |
3189 | } | 3189 | } |
3190 | iwl_leds_background(priv); | ||
3190 | } | 3191 | } |
3191 | EXPORT_SYMBOL(iwl_update_stats); | 3192 | EXPORT_SYMBOL(iwl_update_stats); |
3192 | #endif | 3193 | #endif |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 584a376b96c5..f271663c1d2f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -390,6 +390,7 @@ static inline void iwl_update_stats(struct iwl_priv *priv, bool is_tx, | |||
390 | /* data */ | 390 | /* data */ |
391 | stats->data_bytes += len; | 391 | stats->data_bytes += len; |
392 | } | 392 | } |
393 | iwl_leds_background(priv); | ||
393 | } | 394 | } |
394 | #endif | 395 | #endif |
395 | /***************************************************** | 396 | /***************************************************** |