]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: cancel scan in ieee80211_restart_hw if software scan pending
authorJohn W. Linville <linville@tuxdriver.com>
Mon, 30 Aug 2010 19:12:02 +0000 (15:12 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 31 Aug 2010 19:20:45 +0000 (15:20 -0400)
commitf12e2fe7be222d2e7663e0ccbd80ed8fab0f3a1b
tree459b583796289d587b21eb3390f5a09eb09a52de
parent66652a8dda20922c528c98298633a0a881ffaa99
mac80211: cancel scan in ieee80211_restart_hw if software scan pending

This function exists to clean-up after a hardware error or something
similar.  The restart is accomplished using the same infrastructure used
to resume after a suspend.  The suspend path cancels running scans, so
it seems appropriate to do that here as well for software-based scans.
If a hardware-based scan is pending, issue a warning message since this
indicates that the drivers has failed to clean-up after itself.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c