3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

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.
This commit is contained in:
Andrew Zaborowski 2020-01-27 15:16:44 +01:00 committed by Denis Kenzior
parent b216e98974
commit aec7c0f39c

View File

@ -470,9 +470,9 @@ static void manager_interface_dump_callback(struct l_genl_msg *msg,
manager_get_interface_cb(msg, state); 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); 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) 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); manager_check_create_interfaces, NULL);
} }