3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-18 09:12:43 +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:
James Prestwood 2024-09-20 09:36:14 -07:00 committed by Denis Kenzior
parent 14b9291490
commit a27b7823df

View File

@ -894,11 +894,11 @@ static int manager_init(void)
}
if (!l_settings_get_bool(config, "General",
"UseDefaultInterface", &use_default)) {
"UseDefaultInterface", &use_default))
use_default = false;
else
l_warn("[General].UseDefaultInterface is deprecated, please "
"use [DriverQuirks].DefaultInterface instead");
use_default = false;
}
return 0;