Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 237359
b: refs/heads/master
c: 59bdf3b
h: refs/heads/master
i:
  237357: d444fb7
  237355: 1f6a72e
  237351: 021fbd0
  237343: fcc8205
v: v3
  • Loading branch information
Ben Greear authored and John W. Linville committed Feb 9, 2011
1 parent 1f82480 commit 6797b81
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 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: 603b3eefb92e0886ed4dd5f73d4c07b304405b40
refs/heads/master: 59bdf3b0fe7a183f18ce94696259c4c76abb4568
3 changes: 2 additions & 1 deletion trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
changed |= IEEE80211_CONF_CHANGE_SMPS;
}

if (scan_chan)
if ((local->scanning & SCAN_SW_SCANNING) ||
(local->scanning & SCAN_HW_SCANNING))
power = chan->max_power;
else
power = local->power_constr_level ?
Expand Down
9 changes: 8 additions & 1 deletion trunk/net/mac80211/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,15 @@ static void __ieee80211_scan_completed_finish(struct ieee80211_hw *hw,
mutex_lock(&local->mtx);
on_oper_chan = ieee80211_cfg_on_oper_channel(local);

WARN_ON(local->scanning & (SCAN_SW_SCANNING | SCAN_HW_SCANNING));

if (was_hw_scan || !on_oper_chan) {
if (WARN_ON(local->scan_channel))
local->scan_channel = NULL;
ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_CHANNEL);
}
} else
/* Set power back to normal operating levels. */
ieee80211_hw_config(local, 0);

if (!was_hw_scan) {
bool on_oper_chan2;
Expand Down Expand Up @@ -377,6 +381,9 @@ static int ieee80211_start_sw_scan(struct ieee80211_local *local)

ieee80211_configure_filter(local);

/* We need to set power level at maximum rate for scanning. */
ieee80211_hw_config(local, 0);

ieee80211_queue_delayed_work(&local->hw,
&local->scan_work,
IEEE80211_CHANNEL_TIME);
Expand Down

0 comments on commit 6797b81

Please sign in to comment.