Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180593
b: refs/heads/master
c: c0ce77b
h: refs/heads/master
i:
  180591: 3035165
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Feb 8, 2010
1 parent 9557b88 commit bcd344d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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: 098dfded5b1b09927995e89c6d689f85a0f53384
refs/heads/master: c0ce77b8323c1a0d4eeef97caf16c0ea971222a9
18 changes: 10 additions & 8 deletions trunk/net/mac80211/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,16 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata,
if (local->scan_req)
return -EBUSY;

if (req != local->int_scan_req &&
sdata->vif.type == NL80211_IFTYPE_STATION &&
!list_empty(&ifmgd->work_list)) {
/* actually wait for the work it's doing to finish/time out */
set_bit(IEEE80211_STA_REQ_SCAN, &ifmgd->request);
local->scan_req = req;
local->scan_sdata = sdata;
return 0;
}

if (local->ops->hw_scan) {
u8 *ies;

Expand All @@ -463,14 +473,6 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata,
local->scan_req = req;
local->scan_sdata = sdata;

if (req != local->int_scan_req &&
sdata->vif.type == NL80211_IFTYPE_STATION &&
!list_empty(&ifmgd->work_list)) {
/* actually wait for the work it's doing to finish/time out */
set_bit(IEEE80211_STA_REQ_SCAN, &ifmgd->request);
return 0;
}

if (local->ops->hw_scan)
__set_bit(SCAN_HW_SCANNING, &local->scanning);
else
Expand Down

0 comments on commit bcd344d

Please sign in to comment.