From: Jouni Malinen Date: Sat, 29 Nov 2008 19:02:14 +0000 (+0200) Subject: WPS: Added WPS into key_mgmt config write handler X-Git-Tag: hostap_0_6_7~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=728fae16319c604006476ff46c5f1e3845df005f;p=thirdparty%2Fhostap.git WPS: Added WPS into key_mgmt config write handler --- diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index 6dff006c8..a452323ef 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 */