|
@@ -2581,8 +2581,10 @@ void wpa_supplicant_enable_network(struct wpa_supplicant *wpa_s,
|
|
|
wpa_supplicant_cancel_sched_scan(wpa_s);
|
|
|
}
|
|
|
|
|
|
- if (wpa_supplicant_fast_associate(wpa_s) != 1)
|
|
|
+ if (wpa_supplicant_fast_associate(wpa_s) != 1) {
|
|
|
+ wpa_s->scan_req = NORMAL_SCAN_REQ;
|
|
|
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2710,8 +2712,10 @@ void wpa_supplicant_select_network(struct wpa_supplicant *wpa_s,
|
|
|
wpa_s->reassociate = 1;
|
|
|
|
|
|
if (wpa_s->connect_without_scan ||
|
|
|
- wpa_supplicant_fast_associate(wpa_s) != 1)
|
|
|
+ wpa_supplicant_fast_associate(wpa_s) != 1) {
|
|
|
+ wpa_s->scan_req = NORMAL_SCAN_REQ;
|
|
|
wpa_supplicant_req_scan(wpa_s, 0, disconnected ? 100000 : 0);
|
|
|
+ }
|
|
|
|
|
|
if (ssid)
|
|
|
wpas_notify_network_selected(wpa_s, ssid);
|