aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-08-28 13:14:13 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-28 13:14:13 (GMT)
commit4d5bda5fca79c221f7714ffb85114d7b6bf4f9ff (patch)
tree4262aa0f3a07695bfedaf6b9fb42635b63914142 /wpa_supplicant/events.c
parentb1f122964e862bcb15d0237b4b852429957b7ebc (diff)
downloadhostap-4d5bda5fca79c221f7714ffb85114d7b6bf4f9ff.zip
hostap-4d5bda5fca79c221f7714ffb85114d7b6bf4f9ff.tar.gz
hostap-4d5bda5fca79c221f7714ffb85114d7b6bf4f9ff.tar.bz2
Interworking: Add optional use of network selection on normal scans
auto_interworking=1 configuration parameter can be used to request wpa_supplicant to use Interworking network selection automatically as a part of the normal (non-Interworking) network selection if the scan results do not match with enabled networks. This makes scanning work similarly to the "interworking_select auto" command. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index cddcce7..517e11f 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -41,6 +41,7 @@
#include "bss.h"
#include "scan.h"
#include "offchannel.h"
+#include "interworking.h"
static int wpas_temp_disabled(struct wpa_supplicant *wpa_s,
@@ -1204,6 +1205,19 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
return 0;
}
#endif /* CONFIG_P2P */
+#ifdef CONFIG_INTERWORKING
+ if (wpa_s->conf->auto_interworking &&
+ wpa_s->conf->interworking &&
+ wpa_s->conf->cred) {
+ wpa_dbg(wpa_s, MSG_DEBUG, "Interworking: "
+ "start ANQP fetch since no matching "
+ "networks found");
+ wpa_s->network_select = 1;
+ wpa_s->auto_network_select = 1;
+ interworking_start_fetch_anqp(wpa_s);
+ return 0;
+ }
+#endif /* CONFIG_INTERWORKING */
if (wpa_supplicant_req_sched_scan(wpa_s))
wpa_supplicant_req_new_scan(wpa_s, timeout_sec,
timeout_usec);