aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2013-02-07 16:06:51 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-07 16:09:50 (GMT)
commit66fe0f703cb4d360950c1c551dc2691c0788b442 (patch)
treefb57fd2fd30e2707d9f71c22013a0d91e2b5a867 /wpa_supplicant/events.c
parentff3ad3c5311128f2a82d72cfa2ee47c96628c89c (diff)
downloadhostap-66fe0f703cb4d360950c1c551dc2691c0788b442.zip
hostap-66fe0f703cb4d360950c1c551dc2691c0788b442.tar.gz
hostap-66fe0f703cb4d360950c1c551dc2691c0788b442.tar.bz2
Add 'SCAN TYPE=ONLY' functionality
Usual manual scan request may cause reassociation due to several reasons. New command is intended to perform pure scan without taking any automatic action based on the 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, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 28d80e9..6c8ab6c 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1125,7 +1125,8 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
data ? &data->scan_info :
NULL, 1);
if (scan_res == NULL) {
- if (wpa_s->conf->ap_scan == 2 || ap)
+ if (wpa_s->conf->ap_scan == 2 || ap ||
+ wpa_s->scan_res_handler == scan_only_handler)
return -1;
wpa_dbg(wpa_s, MSG_DEBUG, "Failed to get scan results - try "
"scanning again");