diff options
author | Samuel Ortiz <samuel.ortiz@intel.com> | 2009-06-15 15:59:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 14:57:51 -0400 |
commit | a70742f167424bab794ca74b9e99b598b358bb7d (patch) | |
tree | 28db2ea700e844beb7ce18ace345fcf3797c22bc /drivers/net/wireless/iwmc3200wifi/iwm.h | |
parent | 0c5553b1392dea5ba5ad678790367c1275ed1172 (diff) |
iwmc3200wifi: handling wifi_if_ntfy responses
When we're calling iwm_send_wifi_if_cmd() with the resp flag set, we're
currently waiting on the mlme queue, waiting for some flags here and there to
show up.
This patch adds a wifi_ntfy bitmap, and when we're sending a wifi_if command
expecting an answers, we wait synchronously for it to show up, on a dedicated
queue. The wifi_ntfy bit is set when we receive the corresponding answer.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/iwm.h')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/iwm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/iwm.h b/drivers/net/wireless/iwmc3200wifi/iwm.h index 77c339f8516c..d8d4ae2d91b0 100644 --- a/drivers/net/wireless/iwmc3200wifi/iwm.h +++ b/drivers/net/wireless/iwmc3200wifi/iwm.h | |||
@@ -278,6 +278,9 @@ struct iwm_priv { | |||
278 | struct iwm_key keys[IWM_NUM_KEYS]; | 278 | struct iwm_key keys[IWM_NUM_KEYS]; |
279 | struct iwm_key *default_key; | 279 | struct iwm_key *default_key; |
280 | 280 | ||
281 | DECLARE_BITMAP(wifi_ntfy, WIFI_IF_NTFY_MAX); | ||
282 | wait_queue_head_t wifi_ntfy_queue; | ||
283 | |||
281 | wait_queue_head_t mlme_queue; | 284 | wait_queue_head_t mlme_queue; |
282 | 285 | ||
283 | struct iw_statistics wstats; | 286 | struct iw_statistics wstats; |