aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-07 21:54:03 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-07 22:10:57 (GMT)
commit1fb1bf99d6ee5ca54bb4bcd50e3ecdd410f0c9a7 (patch)
tree51b676aa4606c9d2f341c671bc1a5f5d29d6e039 /wpa_supplicant/config_file.c
parentb4bdeadfaff5b2147d95740f4a049f39de5fa759 (diff)
downloadhostap-1fb1bf99d6ee5ca54bb4bcd50e3ecdd410f0c9a7.zip
hostap-1fb1bf99d6ee5ca54bb4bcd50e3ecdd410f0c9a7.tar.gz
hostap-1fb1bf99d6ee5ca54bb4bcd50e3ecdd410f0c9a7.tar.bz2
Write sec_device_type to configuration file
This is more consistent with other global configuration parameters. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 22b1665..8a3bb32 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -1119,6 +1119,17 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
}
#endif /* CONFIG_WPS */
#ifdef CONFIG_P2P
+ {
+ int i;
+ char _buf[WPS_DEV_TYPE_BUFSIZE], *buf;
+
+ for (i = 0; i < config->num_sec_device_types; i++) {
+ buf = wps_dev_type_bin2str(config->sec_device_type[i],
+ _buf, sizeof(_buf));
+ if (buf)
+ fprintf(f, "sec_device_type=%s\n", buf);
+ }
+ }
if (config->p2p_listen_reg_class)
fprintf(f, "p2p_listen_reg_class=%d\n",
config->p2p_listen_reg_class);