|
@@ -1798,7 +1798,7 @@ static void wpa_supplicant_enable_one_network(struct wpa_supplicant *wpa_s,
|
|
|
* Try to reassociate since there is no current configuration and a new
|
|
|
* network was made available.
|
|
|
*/
|
|
|
- if (!wpa_s->current_ssid)
|
|
|
+ if (!wpa_s->current_ssid && !wpa_s->disconnected)
|
|
|
wpa_s->reassociate = 1;
|
|
|
}
|
|
|
|
|
@@ -1819,7 +1819,7 @@ void wpa_supplicant_enable_network(struct wpa_supplicant *wpa_s,
|
|
|
} else
|
|
|
wpa_supplicant_enable_one_network(wpa_s, ssid);
|
|
|
|
|
|
- if (wpa_s->reassociate) {
|
|
|
+ if (wpa_s->reassociate && !wpa_s->disconnected) {
|
|
|
if (wpa_s->sched_scanning) {
|
|
|
wpa_printf(MSG_DEBUG, "Stop ongoing sched_scan to add "
|
|
|
"new network to scan filters");
|