mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 22:19:23 +01:00
manager: Switch to CamelCase for mac_randomize
This commit is contained in:
parent
8d0860ef86
commit
7db8cf92fe
@ -630,10 +630,17 @@ static int manager_init(void)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
randomize_str =
|
randomize_str = l_settings_get_value(config, "General",
|
||||||
l_settings_get_value(config, "General", "mac_randomize");
|
"AddressRandomization");
|
||||||
if (randomize_str && !strcmp(randomize_str, "once"))
|
if (randomize_str) {
|
||||||
|
if (!strcmp(randomize_str, "once"))
|
||||||
randomize = true;
|
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",
|
if (!l_settings_get_bool(config, "General",
|
||||||
"UseDefaultInterface", &use_default)) {
|
"UseDefaultInterface", &use_default)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user