dpp: include 3rd party settings in network profile

If the configuration object contained IWD's 3rd party settings set
those into the network profile.
This commit is contained in:
James Prestwood 2023-11-17 06:12:25 -08:00 committed by Denis Kenzior
parent 87055f5a02
commit 6afda046c2
1 changed files with 6 additions and 0 deletions

View File

@ -837,6 +837,12 @@ static void dpp_write_config(struct dpp_configuration *config,
network_set_psk(network, psk);
}
if (config->send_hostname)
l_settings_set_bool(settings, "IPv4", "SendHostname", true);
if (config->hidden)
l_settings_set_bool(settings, "Settings", "Hidden", true);
l_debug("Storing credential for '%s(%s)'", config->ssid,
security_to_str(SECURITY_PSK));
storage_network_sync(SECURITY_PSK, config->ssid, settings);