3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

network: reply to pending messages on network_unregister

If there is a connect_after_* message for ANQP or OWE hidden networks
reply to these before unregistering the network.
This commit is contained in:
James Prestwood 2021-09-17 16:16:10 -07:00 committed by Denis Kenzior
parent 8a43473504
commit f45696485c

View File

@ -1745,6 +1745,14 @@ static void network_unregister(struct network *network, int reason)
{
struct l_dbus *dbus = dbus_get_bus();
if (network->connect_after_anqp)
dbus_pending_reply(&network->connect_after_anqp,
dbus_error_aborted(network->connect_after_anqp));
if (network->connect_after_owe_hidden)
dbus_pending_reply(&network->connect_after_owe_hidden,
dbus_error_aborted(network->connect_after_owe_hidden));
agent_request_cancel(network->agent_request, reason);
network_settings_close(network);