From aa487b5198eb2286db41b0d9b45e341252f675c5 Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Wed, 1 Feb 2012 16:43:53 +0200 Subject: wifi: Always set scanning to FALSE in scan callback 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 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/wifi.c b/plugins/wifi.c index 0860938e..aeeb912e 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); } -- cgit v1.2.3