diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-05 14:24:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 15:16:16 -0500 |
commit | 2e7eb117586198386e5a06d0bc4279a9d7cbaeb6 (patch) | |
tree | d7f750276d2fbc84ce06216ef96441dd4fecb0a7 | |
parent | 15854ef94f54ae8fa8b95eb66a2cfa5dcff481e9 (diff) |
iwlwifi: move firmware completion wait
This doesn't belong into the op_mode, it has
to be in the drv stop flow instead.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-drv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index c3b594647def..8bb3f173bfa0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1371,8 +1371,6 @@ static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) | |||
1371 | { | 1371 | { |
1372 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); | 1372 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); |
1373 | 1373 | ||
1374 | wait_for_completion(&nic(priv)->request_firmware_complete); | ||
1375 | |||
1376 | IWL_DEBUG_INFO(priv, "*** UNLOAD DRIVER ***\n"); | 1374 | IWL_DEBUG_INFO(priv, "*** UNLOAD DRIVER ***\n"); |
1377 | 1375 | ||
1378 | iwl_dbgfs_unregister(priv); | 1376 | iwl_dbgfs_unregister(priv); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.c b/drivers/net/wireless/iwlwifi/iwl-drv.c index 343f41eb4e4f..1a588f36b591 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/iwlwifi/iwl-drv.c | |||
@@ -720,6 +720,8 @@ int iwl_drv_start(struct iwl_shared *shrd, | |||
720 | 720 | ||
721 | void iwl_drv_stop(struct iwl_shared *shrd) | 721 | void iwl_drv_stop(struct iwl_shared *shrd) |
722 | { | 722 | { |
723 | wait_for_completion(&shrd->nic->request_firmware_complete); | ||
724 | |||
723 | /* op_mode can be NULL if its start failed */ | 725 | /* op_mode can be NULL if its start failed */ |
724 | if (shrd->nic->op_mode) | 726 | if (shrd->nic->op_mode) |
725 | iwl_op_mode_stop(shrd->nic->op_mode); | 727 | iwl_op_mode_stop(shrd->nic->op_mode); |