3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

wiphy: print driver flags on startup

Similar to other basic information, print the driver flags so the
user is informed what is set.
This commit is contained in:
James Prestwood 2023-06-15 12:24:14 -07:00 committed by Denis Kenzior
parent a50605a456
commit 855318374e

View File

@ -1333,6 +1333,27 @@ static void wiphy_print_basic_info(struct wiphy *wiphy)
l_free(joined);
l_strfreev(iftypes);
}
if (wiphy->driver_flags) {
char **flags = l_strv_new();
char *joined;
if (wiphy->driver_flags & DEFAULT_IF)
flags = l_strv_append(flags, "DefaultInterface");
if (wiphy->driver_flags & FORCE_PAE)
flags = l_strv_append(flags, "ForcePae");
if (wiphy->driver_flags & POWER_SAVE_DISABLE)
flags = l_strv_append(flags, "PowerSaveDisable");
joined = l_strjoinv(flags, ' ');
l_info("\tDriver Flags: %s", joined);
l_free(joined);
l_strfreev(flags);
}
}
static void parse_supported_commands(struct wiphy *wiphy,