In the existing code, there was no "DPP" string available to the DPP key management type for configuration parser of wpa supplicant. When the configuration is saved, the key management string was NULL in the wpa_supplicant config file. Adding support for DPP in key-type in key management. Signed-off-by: Rohit Damodaran <Rohit_Damodaran@xxxxxxxxxxx> --- wpa_supplicant/config.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index c43960697..a05f5b432 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -1002,6 +1002,18 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data, } #endif /* CONFIG_SUITEB192 */ +#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 */ + #ifdef CONFIG_FILS if (ssid->key_mgmt & WPA_KEY_MGMT_FILS_SHA256) { ret = os_snprintf(pos, end - pos, "%sFILS-SHA256", -- 2.14.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap