aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index f021eba41e6a..4baa185ba500 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -7087,9 +7087,10 @@ static int iwl3945_mac_hw_scan(struct ieee80211_hw *hw, u8 *ssid, size_t len)
7087 rc = -EAGAIN; 7087 rc = -EAGAIN;
7088 goto out_unlock; 7088 goto out_unlock;
7089 } 7089 }
7090 /* if we just finished scan ask for delay */ 7090 /* if we just finished scan ask for delay for a broadcast scan */
7091 if (priv->last_scan_jiffies && time_after(priv->last_scan_jiffies + 7091 if ((len == 0) && priv->last_scan_jiffies &&
7092 IWL_DELAY_NEXT_SCAN, jiffies)) { 7092 time_after(priv->last_scan_jiffies + IWL_DELAY_NEXT_SCAN,
7093 jiffies)) {
7093 rc = -EAGAIN; 7094 rc = -EAGAIN;
7094 goto out_unlock; 7095 goto out_unlock;
7095 } 7096 }