aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.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-4965.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-4965.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index ca864fa65ca4..8c14e9a87c14 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -415,23 +415,24 @@ struct iwl4965_rx_queue {
415#define MIN_B_CHANNELS 1 415#define MIN_B_CHANNELS 1
416 416
417#define STATUS_HCMD_ACTIVE 0 /* host command in progress */ 417#define STATUS_HCMD_ACTIVE 0 /* host command in progress */
418#define STATUS_INT_ENABLED 1 418#define STATUS_HCMD_SYNC_ACTIVE 1 /* sync host command in progress */
419#define STATUS_RF_KILL_HW 2 419#define STATUS_INT_ENABLED 2
420#define STATUS_RF_KILL_SW 3 420#define STATUS_RF_KILL_HW 3
421#define STATUS_INIT 4 421#define STATUS_RF_KILL_SW 4
422#define STATUS_ALIVE 5 422#define STATUS_INIT 5
423#define STATUS_READY 6 423#define STATUS_ALIVE 6
424#define STATUS_TEMPERATURE 7 424#define STATUS_READY 7
425#define STATUS_GEO_CONFIGURED 8 425#define STATUS_TEMPERATURE 8
426#define STATUS_EXIT_PENDING 9 426#define STATUS_GEO_CONFIGURED 9
427#define STATUS_IN_SUSPEND 10 427#define STATUS_EXIT_PENDING 10
428#define STATUS_STATISTICS 11 428#define STATUS_IN_SUSPEND 11
429#define STATUS_SCANNING 12 429#define STATUS_STATISTICS 12
430#define STATUS_SCAN_ABORTING 13 430#define STATUS_SCANNING 13
431#define STATUS_SCAN_HW 14 431#define STATUS_SCAN_ABORTING 14
432#define STATUS_POWER_PMI 15 432#define STATUS_SCAN_HW 15
433#define STATUS_FW_ERROR 16 433#define STATUS_POWER_PMI 16
434#define STATUS_CONF_PENDING 17 434#define STATUS_FW_ERROR 17
435#define STATUS_CONF_PENDING 18
435 436
436#define MAX_TID_COUNT 9 437#define MAX_TID_COUNT 9
437 438