[PATCH v2 1/6] wifi: Always set scanning to FALSE in scan callback

patrik.flykt at linux.intel.com patrik.flykt at linux.intel.com
Wed Feb 1 06:43:53 PST 2012


From: Patrik Flykt <patrik.flykt at linux.intel.com>

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




More information about the connman mailing list