]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mac80211_hwsim: fix double-scan detection
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 3 May 2010 07:21:14 +0000 (09:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 May 2010 18:53:11 +0000 (14:53 -0400)
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>
drivers/net/wireless/mac80211_hwsim.c

index ebcf4390429103e1755656646e53115f297ee68b..62a739f6c37b269c5d801737446c0b5f05276669 100644 (file)
@@ -1020,7 +1020,7 @@ static void mac80211_hwsim_sw_scan_complete(struct ieee80211_hw *hw)
        mutex_lock(&hwsim->mutex);
 
        printk(KERN_DEBUG "hwsim sw_scan_complete\n");
-       hwsim->scanning = true;
+       hwsim->scanning = false;
 
        mutex_unlock(&hwsim->mutex);
 }