aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2015-05-25 13:12:24 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-04 10:55:16 (GMT)
commit94687a0aae16bf46e3cb256ead32368627d90cbd (patch)
treed44426a8bf472ac05c0caf0b699e1ba4a79b35c8 /wpa_supplicant/wps_supplicant.c
parent09d57ce40e396d4dd59fd1e93ce7b6b86c8bd581 (diff)
downloadhostap-94687a0aae16bf46e3cb256ead32368627d90cbd.zip
hostap-94687a0aae16bf46e3cb256ead32368627d90cbd.tar.gz
hostap-94687a0aae16bf46e3cb256ead32368627d90cbd.tar.bz2
WPS: Allow the priority for the WPS networks to be configured
This commit adds a configurable parameter (wps_priority) to specify the priority for the networks derived through WPS connection. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 61a8587..a97c2a8 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -547,6 +547,7 @@ static int wpa_supplicant_wps_cred(void *ctx,
return -1;
}
}
+ ssid->priority = wpa_s->conf->wps_priority;
wpas_wps_security_workaround(wpa_s, ssid, cred);
@@ -560,6 +561,9 @@ static int wpa_supplicant_wps_cred(void *ctx,
}
#endif /* CONFIG_NO_CONFIG_WRITE */
+ if (ssid->priority)
+ wpa_config_update_prio_list(wpa_s->conf);
+
/*
* Optimize the post-WPS scan based on the channel used during
* the provisioning in case EAP-Failure is not received.