diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2010-02-19 01:03:04 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-19 15:52:49 -0500 |
commit | d2dfe6df755abb365aa3e2e67d88bda3cce5fd12 (patch) | |
tree | 5b24bd9cffb0ddfdd54554f2b5bace16c346ef99 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 4a6547c748229ba0425713b4adeb0f2d4000da9e (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 0e5a1ca30334..54daa38ecba3 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -3847,6 +3847,7 @@ static int iwl3945_init_drv(struct iwl_priv *priv) | |||
3847 | INIT_LIST_HEAD(&priv->free_frames); | 3847 | INIT_LIST_HEAD(&priv->free_frames); |
3848 | 3848 | ||
3849 | mutex_init(&priv->mutex); | 3849 | mutex_init(&priv->mutex); |
3850 | mutex_init(&priv->sync_cmd_mutex); | ||
3850 | 3851 | ||
3851 | /* Clear the driver's (not device's) station table */ | 3852 | /* Clear the driver's (not device's) station table */ |
3852 | iwl_clear_stations_table(priv); | 3853 | iwl_clear_stations_table(priv); |