]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd88f732694e4869fc7985e813b5999e18071ad84
tree96bddcad1579b3a65735621f4e92272240aad791
parentc910cb98956b379667688b930827f696c51d4fab
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