Fix enabling of networks while another network is being used
Enable a network block, even if there is a current configuration, if it was disabled. Signed-off-by: Kel Modderman <kel@otaku42.de>
This commit is contained in:
parent
1bc774a12a
commit
adc8d4a791
1 changed files with 9 additions and 7 deletions
|
@ -1392,13 +1392,15 @@ void wpa_supplicant_enable_network(struct wpa_supplicant *wpa_s,
|
|||
}
|
||||
if (wpa_s->reassociate)
|
||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||
} else if (wpa_s->current_ssid == NULL && ssid->disabled) {
|
||||
} else if (ssid->disabled) {
|
||||
if (wpa_s->current_ssid == NULL) {
|
||||
/*
|
||||
* Try to reassociate since there is no current configuration
|
||||
* and a new network was made available.
|
||||
* Try to reassociate since there is no current
|
||||
* configuration and a new network was made available.
|
||||
*/
|
||||
wpa_s->reassociate = 1;
|
||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||
}
|
||||
|
||||
was_disabled = ssid->disabled;
|
||||
|
||||
|
|
Loading…
Reference in a new issue