Send CTRL-EVENT-NETWORK-NOT-FOUND if no suitable network was found
This provides more information to upper layer programs on what happens with connection attempts in cases where the enabled networks are not found in scan results. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
123df27eae
commit
4f39908b60
2 changed files with 5 additions and 0 deletions
|
@ -1628,6 +1628,9 @@ static int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s,
|
|||
if (wpa_supplicant_req_sched_scan(wpa_s))
|
||||
wpa_supplicant_req_new_scan(wpa_s, timeout_sec,
|
||||
timeout_usec);
|
||||
|
||||
wpa_msg_ctrl(wpa_s, MSG_INFO,
|
||||
WPA_EVENT_NETWORK_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue