eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 855318374ead5450dd071b3971b7770df4aeb0d1
parent a50605a456f141ba077a1b8ba6ba40dba6c71a0d
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 15 Jun 2023 12:24:14 -0700

wiphy: print driver flags on startup

Similar to other basic information, print the driver flags so the
user is informed what is set.

Diffstat:
Msrc/wiphy.c | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/wiphy.c b/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,