mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-16 17:09:24 +01:00
manager: fix UseDefaultInterface warning
This logic was incorrect here, we only want to print if the option is used, not if its unset.
This commit is contained in:
parent
14b9291490
commit
a27b7823df
@ -894,11 +894,11 @@ static int manager_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!l_settings_get_bool(config, "General",
|
if (!l_settings_get_bool(config, "General",
|
||||||
"UseDefaultInterface", &use_default)) {
|
"UseDefaultInterface", &use_default))
|
||||||
|
use_default = false;
|
||||||
|
else
|
||||||
l_warn("[General].UseDefaultInterface is deprecated, please "
|
l_warn("[General].UseDefaultInterface is deprecated, please "
|
||||||
"use [DriverQuirks].DefaultInterface instead");
|
"use [DriverQuirks].DefaultInterface instead");
|
||||||
use_default = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user