aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/autoscan.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-06-26 16:52:46 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-26 16:52:46 (GMT)
commit992189991ca99e89208a1bad4cb4305e115dd66f (patch)
tree3f80d58ceb305bfdb6cbfdc34c2697bf92c895bc /wpa_supplicant/autoscan.h
parent460b36d0c0c30c42ed5337378959a88e9a108213 (diff)
downloadhostap-992189991ca99e89208a1bad4cb4305e115dd66f.zip
hostap-992189991ca99e89208a1bad4cb4305e115dd66f.tar.gz
hostap-992189991ca99e89208a1bad4cb4305e115dd66f.tar.bz2
Start autoscan for first connection attempt
Use wpa_supplicant_set_state() to initialize state to DISCONNECT so that autoscan gets initialized properly. This needs a change in autoscan_init() to avoid extra scan request that would postpone the first scan request when an interface is added. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/autoscan.h')
-rw-r--r--wpa_supplicant/autoscan.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/autoscan.h b/wpa_supplicant/autoscan.h
index e2fde8e..e2a7652 100644
--- a/wpa_supplicant/autoscan.h
+++ b/wpa_supplicant/autoscan.h
@@ -22,14 +22,14 @@ struct autoscan_ops {
#ifdef CONFIG_AUTOSCAN
-int autoscan_init(struct wpa_supplicant *wpa_s);
+int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan);
void autoscan_deinit(struct wpa_supplicant *wpa_s);
int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
struct wpa_scan_results *scan_res);
#else /* CONFIG_AUTOSCAN */
-static inline int autoscan_init(struct wpa_supplicant *wpa_s)
+static inline int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
{
return 0;
}