aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-12-08 14:26:17 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-08 14:27:26 (GMT)
commit06c00e6d930aedb2619d0bd5f770b3062623cec5 (patch)
tree8eed82b49121a48987edddc49e5e1b67c0b7641a /wpa_supplicant
parentad6a92472da0e0c90c39e1ebf0e5c1cd277a105f (diff)
downloadhostap-06c00e6d930aedb2619d0bd5f770b3062623cec5.zip
hostap-06c00e6d930aedb2619d0bd5f770b3062623cec5.tar.gz
hostap-06c00e6d930aedb2619d0bd5f770b3062623cec5.tar.bz2
OWE: Fix OWE network profile saving
key_mgmt=OWE did not have a config parameter writer and wpa_supplicant was unable to save such a network profile correctly. Fix this by adding the needed parameter writer. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-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 0498cdb..90eef9c 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -1055,6 +1055,18 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data,
}
#endif /* CONFIG_DPP */
+#ifdef CONFIG_OWE
+ if (ssid->key_mgmt & WPA_KEY_MGMT_OWE) {
+ ret = os_snprintf(pos, end - pos, "%sOWE",
+ pos == buf ? "" : " ");
+ if (os_snprintf_error(end - pos, ret)) {
+ end[-1] = '\0';
+ return buf;
+ }
+ pos += ret;
+ }
+#endif /* CONFIG_OWE */
+
if (pos == buf) {
os_free(buf);
buf = NULL;