eiwd

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

commit 5a28504d9e5cd7bf89281ee51d7f61ea6c4f316c
parent 72158e66da575a8e2db8d1a32680937b1579a5af
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Thu, 11 Apr 2019 12:04:49 -0500

manager: Simplify logic

Diffstat:
Msrc/manager.c | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/manager.c b/src/manager.c @@ -55,14 +55,12 @@ static void manager_new_wiphy_event(struct l_genl_msg *msg) return; wiphy = wiphy_find(id); - if (wiphy) { - wiphy_update_from_genl(wiphy, msg); - return; - } + if (!wiphy) { + wiphy = wiphy_create(id, name); - wiphy = wiphy_create(id, name); - if (!wiphy) /* Possibly blacklisted */ - return; + if (!wiphy) + return; + } wiphy_update_from_genl(wiphy, msg); }