3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

manager: If driver is not provided, then use default interfaces

This commit is contained in:
Marcel Holtmann 2021-02-18 21:43:56 +01:00
parent e8ad4f10b0
commit 25ec652423

View File

@ -581,11 +581,15 @@ static void manager_wiphy_dump_done(void *user_data)
if (!state->use_default) {
const char *driver = wiphy_get_driver(state->wiphy);
const char **e;
for (e = default_if_driver_list; *e; e++)
if (fnmatch(*e, driver, 0) == 0)
state->use_default = true;
if (driver) {
const char **e;
for (e = default_if_driver_list; *e; e++)
if (fnmatch(*e, driver, 0) == 0)
state->use_default = true;
} else
state->use_default = true;
}
if (state->use_default)