aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-scan.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-05-25 04:42:21 -0400
committerDavid S. Miller <davem@davemloft.net>2009-05-25 04:42:21 -0400
commitc649c0e31d5736a4b7c5c3454182091dda4bbe62 (patch)
tree93da11bf4ea828611ab5277a7dbadf57724c2b1e /drivers/net/wireless/iwlwifi/iwl-scan.c
parentdaebafed7fef54fcc73d2d01431122cfd578d1e0 (diff)
parent4e2fd555199977c5994d1a4d2d3b8761b20ca4c7 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/ath/ath5k/phy.c drivers/net/wireless/iwlwifi/iwl-agn.c drivers/net/wireless/iwlwifi/iwl3945-base.c
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-scan.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-scan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c
index f6d4af5c7509..e26875dbe859 100644
--- a/drivers/net/wireless/iwlwifi/iwl-scan.c
+++ b/drivers/net/wireless/iwlwifi/iwl-scan.c
@@ -227,9 +227,6 @@ static void iwl_rx_scan_complete_notif(struct iwl_priv *priv,
227 /* The HW is no longer scanning */ 227 /* The HW is no longer scanning */
228 clear_bit(STATUS_SCAN_HW, &priv->status); 228 clear_bit(STATUS_SCAN_HW, &priv->status);
229 229
230 /* The scan completion notification came in, so kill that timer... */
231 cancel_delayed_work(&priv->scan_check);
232
233 IWL_DEBUG_INFO(priv, "Scan pass on %sGHz took %dms\n", 230 IWL_DEBUG_INFO(priv, "Scan pass on %sGHz took %dms\n",
234 (priv->scan_bands & BIT(IEEE80211_BAND_2GHZ)) ? 231 (priv->scan_bands & BIT(IEEE80211_BAND_2GHZ)) ?
235 "2.4" : "5.2", 232 "2.4" : "5.2",
@@ -592,6 +589,8 @@ static void iwl_bg_request_scan(struct work_struct *data)
592 589
593 mutex_lock(&priv->mutex); 590 mutex_lock(&priv->mutex);
594 591
592 cancel_delayed_work(&priv->scan_check);
593
595 if (!iwl_is_ready(priv)) { 594 if (!iwl_is_ready(priv)) {
596 IWL_WARN(priv, "request scan called when driver not ready.\n"); 595 IWL_WARN(priv, "request scan called when driver not ready.\n");
597 goto done; 596 goto done;
@@ -819,6 +818,8 @@ void iwl_bg_scan_completed(struct work_struct *work)
819 818
820 IWL_DEBUG_SCAN(priv, "SCAN complete scan\n"); 819 IWL_DEBUG_SCAN(priv, "SCAN complete scan\n");
821 820
821 cancel_delayed_work(&priv->scan_check);
822
822 ieee80211_scan_completed(priv->hw, false); 823 ieee80211_scan_completed(priv->hw, false);
823 824
824 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) 825 if (test_bit(STATUS_EXIT_PENDING, &priv->status))