From: Jouni Malinen Date: Sun, 19 Oct 2014 09:22:39 +0000 (+0300) Subject: HS 2.0R2: Write OSEN key_mgmt value to config file X-Git-Tag: hostap_2_4~1297 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d6ee86f9bfd8e1cf0d5b4978628f444329a3976;p=thirdparty%2Fhostap.git HS 2.0R2: Write OSEN key_mgmt value to config file This was forgotten when the parser for key_mgmt=OSEN was added. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index 4a9843549..a610b2416 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -699,6 +699,18 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data, } #endif /* CONFIG_SAE */ +#ifdef CONFIG_HS20 + if (ssid->key_mgmt & WPA_KEY_MGMT_OSEN) { + ret = os_snprintf(pos, end - pos, "%sOSEN", + pos == buf ? "" : " "); + if (ret < 0 || ret >= end - pos) { + end[-1] = '\0'; + return buf; + } + pos += ret; + } +#endif /* CONFIG_HS20 */ + if (pos == buf) { os_free(buf); buf = NULL;