]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/config.c
DPP: Allow name and mudurl to be configured for Config Request
[thirdparty/hostap.git] / wpa_supplicant / config.c
index 0467af9a9e9d34e6863e8bf04975b9ebd72193bf..5ad6fc7bbbc97dfa4a72dc7348b5f0a25dd5174d 100644 (file)
@@ -2881,6 +2881,8 @@ void wpa_config_free(struct wpa_config *config)
 #ifdef CONFIG_MBO
        os_free(config->non_pref_chan);
 #endif /* CONFIG_MBO */
+       os_free(config->dpp_name);
+       os_free(config->dpp_mud_url);
 
        os_free(config);
 }
@@ -5020,7 +5022,11 @@ static const struct global_parse_data global_fields[] = {
        { INT_RANGE(ftm_initiator, 0, 1), 0 },
        { INT(gas_rand_addr_lifetime), 0 },
        { INT_RANGE(gas_rand_mac_addr, 0, 2), 0 },
+#ifdef CONFIG_DPP
        { INT_RANGE(dpp_config_processing, 0, 2), 0 },
+       { STR(dpp_name), 0 },
+       { STR(dpp_mud_url), 0 },
+#endif /* CONFIG_DPP */
        { INT_RANGE(coloc_intf_reporting, 0, 1), 0 },
 #ifdef CONFIG_WNM
        { INT_RANGE(disable_btm, 0, 1), CFG_CHANGED_DISABLE_BTM },