iwlwifi: enable serialization of synchronous commands
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 19 Feb 2010 06:03:04 +0000 (22:03 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Feb 2010 20:52:49 +0000 (15:52 -0500)
commitd2dfe6df755abb365aa3e2e67d88bda3cce5fd12
tree5b24bd9cffb0ddfdd54554f2b5bace16c346ef99
parent4a6547c748229ba0425713b4adeb0f2d4000da9e
iwlwifi: enable serialization of synchronous commands

Until now it was only possible to have one synchronous command running at
any time. If a synchronous command is in progress when a second request
arrives then the second command will fail. Create a new mutex specific for
this purpose to only allow one synchronous command at a time, but enable
other commands to wait instead of fail if a synchronous command is in
progress.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-debugfs.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-hcmd.c
drivers/net/wireless/iwlwifi/iwl-tx.c
drivers/net/wireless/iwlwifi/iwl3945-base.c