Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111423
b: refs/heads/master
c: 681c005
h: refs/heads/master
i:
  111421: 68f313f
  111419: 8244477
  111415: 36df81d
  111407: 87b9dd2
  111391: 12d4f15
  111359: c638e74
v: v3
  • Loading branch information
Ron Rindjunsky authored and John W. Linville committed Sep 8, 2008
1 parent ee82663 commit 8a44d00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c0399d3fde0a9958fb8e9a067a463643cf235b5
refs/heads/master: 681c0050ea3ac2e90c83d5af397d73eed848a372
4 changes: 3 additions & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3205,12 +3205,14 @@ static int iwl_mac_hw_scan(struct ieee80211_hw *hw, u8 *ssid, size_t ssid_len)
/* we don't schedule scan within next_scan_jiffies period */
if (priv->next_scan_jiffies &&
time_after(priv->next_scan_jiffies, jiffies)) {
IWL_DEBUG_SCAN("scan rejected: within next scan period\n");
ret = -EAGAIN;
goto out_unlock;
}
/* if we just finished scan ask for delay */
if (priv->last_scan_jiffies &&
if (iwl_is_associated(priv) && priv->last_scan_jiffies &&
time_after(priv->last_scan_jiffies + IWL_DELAY_NEXT_SCAN, jiffies)) {
IWL_DEBUG_SCAN("scan rejected: within previous scan period\n");
ret = -EAGAIN;
goto out_unlock;
}
Expand Down

0 comments on commit 8a44d00

Please sign in to comment.