eiwd

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

commit aec7c0f39c5c0c9fad4f3e6aea8dc0974a32000c
parent b216e9897437b1e999c2af70805167109b7229ca
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Mon, 27 Jan 2020 15:16:44 +0100

manager: Make sure all interface are processed after dump

In manager_interface_dump_done use l_queue_foreach_remove instead of
l_queue_remove_if to make sure we process all of the interfaces.

Diffstat:
Msrc/manager.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/manager.c b/src/manager.c @@ -470,9 +470,9 @@ static void manager_interface_dump_callback(struct l_genl_msg *msg, manager_get_interface_cb(msg, state); } -static bool manager_check_create_interfaces(const void *a, const void *b) +static bool manager_check_create_interfaces(void *data, void *user_data) { - struct wiphy_setup_state *state = (void *) a; + struct wiphy_setup_state *state = data; wiphy_create_complete(state->wiphy); @@ -491,7 +491,7 @@ static bool manager_check_create_interfaces(const void *a, const void *b) static void manager_interface_dump_done(void *user_data) { - l_queue_remove_if(pending_wiphys, + l_queue_foreach_remove(pending_wiphys, manager_check_create_interfaces, NULL); }