3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-26 18:12:42 +01:00

manager: Switch to CamelCase for mac_randomize

This commit is contained in:
Denis Kenzior 2019-10-25 11:21:04 -05:00
parent 8d0860ef86
commit 7db8cf92fe

View File

@ -630,10 +630,17 @@ static int manager_init(void)
goto error;
}
randomize_str =
l_settings_get_value(config, "General", "mac_randomize");
if (randomize_str && !strcmp(randomize_str, "once"))
randomize = true;
randomize_str = l_settings_get_value(config, "General",
"AddressRandomization");
if (randomize_str) {
if (!strcmp(randomize_str, "once"))
randomize = true;
else if (!strcmp(randomize_str, "disabled"))
randomize = false;
else
l_warn("Invalid [General].AddressRandomization"
" value: %s", randomize_str);
}
if (!l_settings_get_bool(config, "General",
"UseDefaultInterface", &use_default)) {