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.
This commit is contained in:
James Prestwood 2021-09-15 16:05:45 -07:00 committed by Denis Kenzior
parent e11ad83222
commit c19dc6605f
1 changed files with 1 additions and 3 deletions

View File

@ -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;