mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01: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:
parent
a50605a456
commit
855318374e
21
src/wiphy.c
21
src/wiphy.c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user