wifi: Use common scan callback handling
[framework/connectivity/connman.git] / plugins / wifi.c
index 205fb95..3e48999 100644 (file)
@@ -492,8 +492,7 @@ static void scan_callback_hidden(int result,
        }
 
 out:
-       connman_device_set_scanning(device, FALSE);
-       connman_device_unref(device);
+       scan_callback(result, interface, user_data);
 }
 
 static gboolean autoscan_timeout(gpointer data)