|
@@ -1836,8 +1836,11 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s)
|
|
|
wpa_drv_flush_pmkid(wpa_s);
|
|
|
|
|
|
wpa_s->prev_scan_ssid = WILDCARD_SSID_SCAN;
|
|
|
- wpa_supplicant_req_scan(wpa_s, interface_count, 100000);
|
|
|
- interface_count++;
|
|
|
+ if (wpa_supplicant_enabled_networks(wpa_s->conf)) {
|
|
|
+ wpa_supplicant_req_scan(wpa_s, interface_count, 100000);
|
|
|
+ interface_count++;
|
|
|
+ } else
|
|
|
+ wpa_supplicant_set_state(wpa_s, WPA_INACTIVE);
|
|
|
|
|
|
return 0;
|
|
|
}
|