Skip to content

Commit

Permalink
mac80211: wait for scan work complete before restarting hw
Browse files Browse the repository at this point in the history
This is needed to avoid warning in ieee80211_restart_hw about hardware
scan in progress.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi W Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Sep 14, 2010
1 parent e7e16b9 commit edeb78a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ 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__);

Expand Down

0 comments on commit edeb78a

Please sign in to comment.