diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-23 10:45:04 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-28 15:59:48 -0400 |
commit | 74aa9be0ea0ffeb233f45c39f3cf594b68bbbb89 (patch) | |
tree | 1288c8c98ecb3b6e2418905de1db8e263d0c8632 /drivers/net/wireless/iwlwifi | |
parent | e805e4d0b53506dff4255a2792483f094e7fcd2c (diff) | |
download | op-kernel-dev-74aa9be0ea0ffeb233f45c39f3cf594b68bbbb89.zip op-kernel-dev-74aa9be0ea0ffeb233f45c39f3cf594b68bbbb89.tar.gz |
iwlwifi: notify on scan completion even when shutting down
Under certain circumstances iwlwifi can get stuck and will no
longer accept scan requests, because the core code (cfg80211)
thinks that it's still processing one. This fixes one of the
points where it can happen, but I've still seen it (although
only with my radio-off-when-idle patch).
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c index 23644cf..e7c65c4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-scan.c +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c @@ -925,11 +925,11 @@ void iwl_bg_scan_completed(struct work_struct *work) IWL_DEBUG_SCAN(priv, "SCAN complete scan\n"); + ieee80211_scan_completed(priv->hw, false); + if (test_bit(STATUS_EXIT_PENDING, &priv->status)) return; - ieee80211_scan_completed(priv->hw, false); - /* Since setting the TXPOWER may have been deferred while * performing the scan, fire one off */ mutex_lock(&priv->mutex); |