libertas: terminate scan when stopping interface
authorDaniel Drake <dsd@laptop.org>
Thu, 4 Nov 2010 21:21:52 +0000 (21:21 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Nov 2010 21:53:47 +0000 (16:53 -0500)
commit2e30168ba7dba95710aaadf12b2a97163df067b1
tree96bddcad1579b3a65735621f4e92272240aad791
parent352ffad646c0e0c5cf9ae8cea99710ee0d66ee27
libertas: terminate scan when stopping interface

There are currently no provisions in place to ensure that the scanning
task has been stopped when the interface is stopped or removed.

This can result in a WARNING at net/wireless/core.c:643 and other badness
when you remove the module while a scan is happening.

Terminate the scanning task during interface stop.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cfg.c
drivers/net/wireless/libertas/dev.h
drivers/net/wireless/libertas/main.c