mac80211: only cancel software-based scans on suspend
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 1 Sep 2010 20:12:28 +0000 (16:12 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 1 Sep 2010 20:12:28 +0000 (16:12 -0400)
commit85f72bc839705294b32b6c16b491c0422f0a71b3
treec2aec95a5b7315cc7e5bff44a28eb26d045d64e5
parent18145c69349f2ab60c470798f83b3a2639e2a8d9
mac80211: only cancel software-based scans on suspend

Otherwise the hardware scan handler could access an invalid scan request
structure.  The driver should cancel any pending hardware scans during
the suspend process anyway, so also add a warning if the hardware scan
is still pending when the device resumes.

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