summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMohamed Abbas <mohamed.abbas@intel.com>2008-11-04 12:21:34 -0800
committerJohn W. Linville <linville@tuxdriver.com>2008-11-06 16:37:11 -0500
commit2420ebc104d38567ee977a3c15dc675a9dd3b07c (patch)
treefc43b0e250e4d467af07cfcea77074d88beef3c1 /drivers
parentc793033945bea23d7a6e0d8d94b2da6603e02af2 (diff)
downloadlinux-2420ebc104d38567ee977a3c15dc675a9dd3b07c.tar.gz
linux-2420ebc104d38567ee977a3c15dc675a9dd3b07c.tar.bz2
linux-2420ebc104d38567ee977a3c15dc675a9dd3b07c.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c8
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)
return;
done:
+ /* can not perform scan make sure we clear scanning
+ * bits from status so next scan request can be performed.
+ * if we dont clear scanning status bit here all next scan
+ * will fail
+ */
+ clear_bit(STATUS_SCAN_HW, &priv->status);
+ clear_bit(STATUS_SCANNING, &priv->status);
+
/* inform mac80211 scan aborted */
queue_work(priv->workqueue, &priv->scan_completed);
mutex_unlock(&priv->mutex);