All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] network: reply to pending messages on network_unregister
@ 2021-09-17 23:16 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2021-09-17 23:16 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

If there is a connect_after_* message for ANQP or OWE hidden networks
reply to these before unregistering the network.
---
 src/network.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/network.c b/src/network.c
index 711fb296..7240b029 100644
--- a/src/network.c
+++ b/src/network.c
@@ -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);
 
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] network: reply to pending messages on network_unregister
@ 2021-09-17 23:13 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-09-17 23:13 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

Hi James,

On 9/17/21 6:16 PM, James Prestwood wrote:
> If there is a connect_after_* message for ANQP or OWE hidden networks
> reply to these before unregistering the network.
> ---
>   src/network.c | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-17 23:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 23:16 [PATCH] network: reply to pending messages on network_unregister James Prestwood
  -- strict thread matches above, loose matches on Subject: below --
2021-09-17 23:13 Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.