aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2015-06-19 17:33:50 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-27 08:08:08 (GMT)
commit4f39908b60eacacfb932fd071e8f63c0479b51a5 (patch)
tree7f9aea4c5d8187e46b7ee72f2e40c8c3f7882e95 /wpa_supplicant/events.c
parent123df27eaee4fe5b7ecd9d38831a782d4f7048ea (diff)
downloadhostap-4f39908b60eacacfb932fd071e8f63c0479b51a5.zip
hostap-4f39908b60eacacfb932fd071e8f63c0479b51a5.tar.gz
hostap-4f39908b60eacacfb932fd071e8f63c0479b51a5.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 601ddb3..aa171ef 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -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;