From: Patrik Flykt <[email protected]>

By always setting scanning to FALSE in the scan callback,
information for a stopped scan will be processed in
device.c.
---
 plugins/wifi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index 0860938..aeeb912 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -301,8 +301,8 @@ static void scan_callback(int result, GSupplicantInterface 
*interface,
 
        if (result < 0)
                connman_device_reset_scanning(device);
-       else
-               connman_device_set_scanning(device, FALSE);
+
+       connman_device_set_scanning(device, FALSE);
        connman_device_unref(device);
 }
 
-- 
1.7.2.5

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to