aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mac80211_hwsim.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-05-03 03:21:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-03 14:53:11 -0400
commit23ff98fc21615e324647af540a4ec1c24f993687 (patch)
treee8c92d7d180e3a03dbfc3ed82b5b5662f72e38ba /drivers/net/wireless/mac80211_hwsim.c
parentbe4a4b6a5d2f76393f545a2545fbaa1b65577e13 (diff)
mac80211_hwsim: fix double-scan detection
Currently, hwsim will always detect a double scan after the first one has finished ... Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index ebcf43904291..62a739f6c37b 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -1020,7 +1020,7 @@ static void mac80211_hwsim_sw_scan_complete(struct ieee80211_hw *hw)
1020 mutex_lock(&hwsim->mutex); 1020 mutex_lock(&hwsim->mutex);
1021 1021
1022 printk(KERN_DEBUG "hwsim sw_scan_complete\n"); 1022 printk(KERN_DEBUG "hwsim sw_scan_complete\n");
1023 hwsim->scanning = true; 1023 hwsim->scanning = false;
1024 1024
1025 mutex_unlock(&hwsim->mutex); 1025 mutex_unlock(&hwsim->mutex);
1026} 1026}