aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-19 09:22:39 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-19 09:58:13 (GMT)
commit2d6ee86f9bfd8e1cf0d5b4978628f444329a3976 (patch)
tree73524c18e8f8072626c36ce71d98c03f6f81ecca /wpa_supplicant/config.c
parentd3fd563f46d93f07d5a4247f46cde54cec86b854 (diff)
downloadhostap-2d6ee86f9bfd8e1cf0d5b4978628f444329a3976.zip
hostap-2d6ee86f9bfd8e1cf0d5b4978628f444329a3976.tar.gz
hostap-2d6ee86f9bfd8e1cf0d5b4978628f444329a3976.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config.c')
-rw-r--r--wpa_supplicant/config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 4a98435..a610b24 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;