Fix issue with missing scanning after power up
[platform/upstream/connman.git] / plugins / wifi.c
index 4dfaf27..85b4e86 100644 (file)
@@ -97,6 +97,8 @@ static void wifi_newlink(unsigned flags, unsigned change, void *user_data)
        if ((wifi->flags & IFF_UP) != (flags & IFF_UP)) {
                if (flags & IFF_UP) {
                        DBG("power on");
+
+                       supplicant_scan(device);
                } else {
                        DBG("power off");
                }