diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index c43960697..0498cdb01 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -1043,6 +1043,18 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data, #endif /* CONFIG_IEEE80211R */ #endif /* CONFIG_FILS */ +#ifdef CONFIG_DPP + if (ssid->key_mgmt & WPA_KEY_MGMT_DPP) { + ret = os_snprintf(pos, end - pos, "%sDPP", + pos == buf ? "" : " "); + if (os_snprintf_error(end - pos, ret)) { + end[-1] = '\0'; + return buf; + } + pos += ret; + } +#endif /* CONFIG_DPP */ + if (pos == buf) { os_free(buf); buf = NULL;