aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.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/config_file.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/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 781f5e5..2508ca9 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -1286,6 +1286,9 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
if (config->reassoc_same_bss_optim)
fprintf(f, "reassoc_same_bss_optim=%d\n",
config->reassoc_same_bss_optim);
+
+ if (config->wps_priority)
+ fprintf(f, "wps_priority=%d\n", config->wps_priority);
}
#endif /* CONFIG_NO_CONFIG_WRITE */