aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-03-28 19:21:12 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-01 17:13:19 -0400
commite5472978ef16051337913f57b2f22982f3e9e4c2 (patch)
tree9ae5dd96bfe7bf2fbc989dd4429b08d879f294ef /drivers/net/wireless/iwlwifi/iwl-3945.h
parenta571ea4eb34adbf33bbaf4bdc6db6037b1a93e0f (diff)
iwlwifi: Fix synchronous host command
This patch replaces static variable from send_cmd_sync with flag in priv->status. It was used for reentrance protection but clearly made it impossible to stuck more cards into the same machine In addition it force check of return values of synchronous commands commands that doesn't requires return value async commands have to be used Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Yi Zhu <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h
index d7ccf13b875d..ac1226946aa6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.h
@@ -401,23 +401,24 @@ struct iwl3945_rx_queue {
401#define MIN_B_CHANNELS 1 401#define MIN_B_CHANNELS 1
402 402
403#define STATUS_HCMD_ACTIVE 0 /* host command in progress */ 403#define STATUS_HCMD_ACTIVE 0 /* host command in progress */
404#define STATUS_INT_ENABLED 1 404#define STATUS_HCMD_SYNC_ACTIVE 1 /* sync host command in progress */
405#define STATUS_RF_KILL_HW 2 405#define STATUS_INT_ENABLED 2
406#define STATUS_RF_KILL_SW 3 406#define STATUS_RF_KILL_HW 3
407#define STATUS_INIT 4 407#define STATUS_RF_KILL_SW 4
408#define STATUS_ALIVE 5 408#define STATUS_INIT 5
409#define STATUS_READY 6 409#define STATUS_ALIVE 6
410#define STATUS_TEMPERATURE 7 410#define STATUS_READY 7
411#define STATUS_GEO_CONFIGURED 8 411#define STATUS_TEMPERATURE 8
412#define STATUS_EXIT_PENDING 9 412#define STATUS_GEO_CONFIGURED 9
413#define STATUS_IN_SUSPEND 10 413#define STATUS_EXIT_PENDING 10
414#define STATUS_STATISTICS 11 414#define STATUS_IN_SUSPEND 11
415#define STATUS_SCANNING 12 415#define STATUS_STATISTICS 12
416#define STATUS_SCAN_ABORTING 13 416#define STATUS_SCANNING 13
417#define STATUS_SCAN_HW 14 417#define STATUS_SCAN_ABORTING 14
418#define STATUS_POWER_PMI 15 418#define STATUS_SCAN_HW 15
419#define STATUS_FW_ERROR 16 419#define STATUS_POWER_PMI 16
420#define STATUS_CONF_PENDING 17 420#define STATUS_FW_ERROR 17
421#define STATUS_CONF_PENDING 18
421 422
422#define MAX_TID_COUNT 9 423#define MAX_TID_COUNT 9
423 424