Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214993
b: refs/heads/master
c: bc86863
h: refs/heads/master
i:
  214991: dbc0d36
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Oct 5, 2010
1 parent f813b2a commit a8ef81e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: 8e0167a4bdce4adcea64d2197378673d332cda28
refs/heads/master: bc86863de63e6ae7ec6f9f524604631608c6cb02
19 changes: 10 additions & 9 deletions trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,17 @@ static void ieee80211_restart_work(struct work_struct *work)
struct ieee80211_local *local =
container_of(work, struct ieee80211_local, restart_work);

/* wait for scan work complete */
flush_workqueue(local->workqueue);

mutex_lock(&local->mtx);
WARN(test_bit(SCAN_HW_SCANNING, &local->scanning),
"%s called with hardware scan in progress\n", __func__);
mutex_unlock(&local->mtx);

rtnl_lock();
if (unlikely(test_bit(SCAN_SW_SCANNING, &local->scanning)))
ieee80211_scan_cancel(local);
ieee80211_reconfig(local);
rtnl_unlock();
}
Expand All @@ -306,15 +316,6 @@ void ieee80211_restart_hw(struct ieee80211_hw *hw)

trace_api_restart_hw(local);

/* wait for scan work complete */
flush_workqueue(local->workqueue);

WARN(test_bit(SCAN_HW_SCANNING, &local->scanning),
"%s called with hardware scan in progress\n", __func__);

if (unlikely(test_bit(SCAN_SW_SCANNING, &local->scanning)))
ieee80211_scan_cancel(local);

/* use this reason, ieee80211_reconfig will unblock it */
ieee80211_stop_queues_by_reason(hw,
IEEE80211_QUEUE_STOP_REASON_SUSPEND);
Expand Down

0 comments on commit a8ef81e

Please sign in to comment.