aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-11-29 19:02:14 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-29 19:02:14 (GMT)
commit728fae16319c604006476ff46c5f1e3845df005f (patch)
tree433fd48aa9954eeb79ccb903ae3fa07d2180f937 /wpa_supplicant
parentfcc60db4eb5a8ea4e482b1785fd069b8553fd760 (diff)
downloadhostap-06-728fae16319c604006476ff46c5f1e3845df005f.zip
hostap-06-728fae16319c604006476ff46c5f1e3845df005f.tar.gz
hostap-06-728fae16319c604006476ff46c5f1e3845df005f.tar.bz2
WPS: Added WPS into key_mgmt config write handler
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 6dff006..a452323 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -630,6 +630,12 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data,
pos == buf ? "" : " ");
#endif /* CONFIG_IEEE80211W */
+#ifdef CONFIG_WPS
+ if (ssid->key_mgmt & WPA_KEY_MGMT_WPS)
+ pos += os_snprintf(pos, end - pos, "%sWPS",
+ pos == buf ? "" : " ");
+#endif /* CONFIG_WPS */
+
return buf;
}
#endif /* NO_CONFIG_WRITE */