diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-04-15 19:01:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-16 15:59:59 -0400 |
commit | 49ea85961cf8b60b5387cc1c1bc06fe4b6a31ee4 (patch) | |
tree | 467058c7a44b216a70849ceca7d3acd23f0a4bf4 /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | ba380013b681e91e059f95b51002f8d43024b371 (diff) |
iwlwifi: remove the statistics work
This patch does 3 things
1) It removes the statistics work. The request statistics command is
sent in ASYNC mode in this flow, the mutex is uneeded, so the request
statistics function can't go to sleep. No need for a workqueue anymore.
2) iwl4965_send_statistics_request has been renamed to
iwl_send_statistics_request and moved to iwl-core.c
3) A request for statistics is sent in alive_notify, the makes the uCode
sends statistics notification periodically starting from association.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 5ec0af4788e4..42e519be0206 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -596,13 +596,6 @@ static void iwl4965_set_rxon_hwcrypto(struct iwl_priv *priv, int hw_decrypt) | |||
596 | 596 | ||
597 | } | 597 | } |
598 | 598 | ||
599 | int iwl4965_send_statistics_request(struct iwl_priv *priv) | ||
600 | { | ||
601 | u32 flags = 0; | ||
602 | return iwl_send_cmd_pdu(priv, REPLY_STATISTICS_CMD, | ||
603 | sizeof(flags), &flags); | ||
604 | } | ||
605 | |||
606 | /** | 599 | /** |
607 | * iwl4965_rxon_add_station - add station into station table. | 600 | * iwl4965_rxon_add_station - add station into station table. |
608 | * | 601 | * |
@@ -7530,7 +7523,7 @@ static ssize_t show_statistics(struct device *d, | |||
7530 | return -EAGAIN; | 7523 | return -EAGAIN; |
7531 | 7524 | ||
7532 | mutex_lock(&priv->mutex); | 7525 | mutex_lock(&priv->mutex); |
7533 | rc = iwl4965_send_statistics_request(priv); | 7526 | rc = iwl_send_statistics_request(priv, 0); |
7534 | mutex_unlock(&priv->mutex); | 7527 | mutex_unlock(&priv->mutex); |
7535 | 7528 | ||
7536 | if (rc) { | 7529 | if (rc) { |