eiwd

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

commit 34348fcb429b0e5e5ed780c8f7418c9d9195fb29
parent ceb6da81b3d11acf7ccf801f7ff4d613e002e217
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 12 Jan 2022 10:08:41 -0800

scan: don't print notification if sc is not found

If this scan is not for any IWD wdev's don't print

Diffstat:
Msrc/scan.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scan.c b/src/scan.c @@ -1811,8 +1811,6 @@ static void scan_notify(struct l_genl_msg *msg, void *user_data) cmd = l_genl_msg_get_command(msg); - l_debug("Scan notification %s(%u)", nl80211cmd_to_string(cmd), cmd); - if (nl80211_parse_attrs(msg, NL80211_ATTR_WDEV, &wdev_id, NL80211_ATTR_WIPHY, &wiphy_id, NL80211_ATTR_UNSPEC) < 0) @@ -1822,6 +1820,8 @@ static void scan_notify(struct l_genl_msg *msg, void *user_data) if (!sc) return; + l_debug("Scan notification %s(%u)", nl80211cmd_to_string(cmd), cmd); + if (!l_genl_attr_init(&attr, msg)) return;