From c19dc6605f9d7b69dc7e3cef354230cdedbc83d7 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 15 Sep 2021 16:05:45 -0700 Subject: [PATCH] network: fix pending hidden OWE scan logic This was actually broken if triggered because __network_connect checks if network->connect_after_owe_hidden is set and returns already in progress. We want to keep this behavior though for obvious reasons. To fix this station_connect_network can be called directly which bypasses the check. This is essentially how ANQP avoids this problem as well. --- src/network.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/network.c b/src/network.c index 48314a05..4768b872 100644 --- a/src/network.c +++ b/src/network.c @@ -1955,11 +1955,9 @@ static void event_watch_changed(enum station_event state, if (!network->connect_after_owe_hidden) return; - reply = __network_connect(network, + station_connect_network(network->station, network, network_bss_select(network, true), network->connect_after_owe_hidden); - if (reply) - l_dbus_send(dbus_get_bus(), reply); l_dbus_message_unref(network->connect_after_owe_hidden); network->connect_after_owe_hidden = NULL;