eiwd

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

commit f45696485cd7de4a9782924c4b2d070adde8adc5
parent 8a434735042cab780b063c6d5070514945ee1a8d
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 17 Sep 2021 16:16:10 -0700

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.

Diffstat:
Msrc/network.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git 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);