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/iwl-core.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/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index d8a226e68ed1..88d62462ed4a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -277,3 +277,15 @@ int iwlcore_low_level_notify(struct iwl_priv *priv, | |||
277 | } | 277 | } |
278 | EXPORT_SYMBOL(iwlcore_low_level_notify); | 278 | EXPORT_SYMBOL(iwlcore_low_level_notify); |
279 | 279 | ||
280 | int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags) | ||
281 | { | ||
282 | u32 stat_flags = 0; | ||
283 | struct iwl_host_cmd cmd = { | ||
284 | .id = REPLY_STATISTICS_CMD, | ||
285 | .meta.flags = flags, | ||
286 | .len = sizeof(stat_flags), | ||
287 | .data = (u8 *) &stat_flags, | ||
288 | }; | ||
289 | return iwl_send_cmd(priv, &cmd); | ||
290 | } | ||
291 | EXPORT_SYMBOL(iwl_send_statistics_request); | ||