mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01: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:
parent
b216e98974
commit
aec7c0f39c
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user