diff options
author | Daniel Drake <dsd@laptop.org> | 2010-11-04 21:21:52 +0000 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-08 16:53:47 -0500 |
commit | 2e30168ba7dba95710aaadf12b2a97163df067b1 (patch) | |
tree | 96bddcad1579b3a65735621f4e92272240aad791 /drivers/net/wireless/libertas/dev.h | |
parent | 352ffad646c0e0c5cf9ae8cea99710ee0d66ee27 (diff) | |
download | linux-2e30168ba7dba95710aaadf12b2a97163df067b1.tar.gz linux-2e30168ba7dba95710aaadf12b2a97163df067b1.tar.bz2 linux-2e30168ba7dba95710aaadf12b2a97163df067b1.zip |
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>
Diffstat (limited to 'drivers/net/wireless/libertas/dev.h')
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index f062ed583901..cb14c38caf3a 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h @@ -36,6 +36,7 @@ struct lbs_private { /* CFG80211 */ struct wireless_dev *wdev; bool wiphy_registered; + bool stopping; struct cfg80211_scan_request *scan_req; u8 assoc_bss[ETH_ALEN]; u8 disassoc_reason; |