aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2013-03-31 17:06:42 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-31 17:06:42 (GMT)
commit97236cee6a52ca15c488af548ae7be31f854a85d (patch)
tree9cb1dc6dc0faad89008661133850e4d326881c8f /wpa_supplicant/events.c
parent6dacb8e98b3a533533b2d4b415cdcf5367d99416 (diff)
downloadhostap-97236cee6a52ca15c488af548ae7be31f854a85d.zip
hostap-97236cee6a52ca15c488af548ae7be31f854a85d.tar.gz
hostap-97236cee6a52ca15c488af548ae7be31f854a85d.tar.bz2
WPS: Skip rescanning after provisioning if AP was configured
If WPS provisioning step is completed with an AP that is in WPS configured state, we can skip a second scan after the provisioning step since the AP is unlikely to change its configuration in such a case. This can speed up WPS connection a bit by removing an unneeded scan. Signed-hostap: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index d291990..8d276c5 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -851,9 +851,8 @@ wpa_supplicant_select_bss(struct wpa_supplicant *wpa_s,
}
-static struct wpa_bss *
-wpa_supplicant_pick_network(struct wpa_supplicant *wpa_s,
- struct wpa_ssid **selected_ssid)
+struct wpa_bss * wpa_supplicant_pick_network(struct wpa_supplicant *wpa_s,
+ struct wpa_ssid **selected_ssid)
{
struct wpa_bss *selected = NULL;
int prio;