Interworking: Clear SCANNING state if no match found
Previously, it was possible for wpa_state to be left at SCANNING if INTERWORKING_SELECT command failed to find any match. Now the state is set to DISCONNECTED if the operation terminates because of no matching networks. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
19ec6070ff
commit
192ad3d730
1 changed files with 2 additions and 0 deletions
|
@ -2491,6 +2491,8 @@ static void interworking_select_network(struct wpa_supplicant *wpa_s)
|
||||||
|
|
||||||
wpa_msg(wpa_s, MSG_INFO, INTERWORKING_NO_MATCH "No network "
|
wpa_msg(wpa_s, MSG_INFO, INTERWORKING_NO_MATCH "No network "
|
||||||
"with matching credentials found");
|
"with matching credentials found");
|
||||||
|
if (wpa_s->wpa_state == WPA_SCANNING)
|
||||||
|
wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selected) {
|
if (selected) {
|
||||||
|
|
Loading…
Reference in a new issue