diff options
author | Mohamed Abbas <mohamed.abbas@intel.com> | 2008-11-04 15:21:34 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-06 16:37:11 -0500 |
commit | 2420ebc104d38567ee977a3c15dc675a9dd3b07c (patch) | |
tree | fc43b0e250e4d467af07cfcea77074d88beef3c1 | |
parent | c793033945bea23d7a6e0d8d94b2da6603e02af2 (diff) |
iwl3945: clear scanning bits upon failure
This patch ensures we clear any scan status bit when
an error occurs while sending the scan command. It is
the implementation of patch:
"iwlwifi: clear scanning bits upon failure"
for iwl3945.
Signed-off-by: Mohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index d15a2c997954..b9eac5551d82 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -6273,6 +6273,14 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
6273 | return; | 6273 | return; |
6274 | 6274 | ||
6275 | done: | 6275 | done: |
6276 | /* can not perform scan make sure we clear scanning | ||
6277 | * bits from status so next scan request can be performed. | ||
6278 | * if we dont clear scanning status bit here all next scan | ||
6279 | * will fail | ||
6280 | */ | ||
6281 | clear_bit(STATUS_SCAN_HW, &priv->status); | ||
6282 | clear_bit(STATUS_SCANNING, &priv->status); | ||
6283 | |||
6276 | /* inform mac80211 scan aborted */ | 6284 | /* inform mac80211 scan aborted */ |
6277 | queue_work(priv->workqueue, &priv->scan_completed); | 6285 | queue_work(priv->workqueue, &priv->scan_completed); |
6278 | mutex_unlock(&priv->mutex); | 6286 | mutex_unlock(&priv->mutex); |