commit 163fb868c2a57b3ea1b0b3498743ed2c41340ccd
parent e10bb3bd77570ef578fa90d607edd1e876273cca
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 16 Sep 2021 13:49:25 -0700
station: Ignore OWE Transition BSSes
BSSes that advertise OWE Transition IE are special and should be ignored
for the purposes of ConnectHiddenNetwork
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/station.c b/src/station.c
@@ -2816,6 +2816,9 @@ static bool station_hidden_network_scan_results(int err,
memcmp(bss->ssid, ssid, ssid_len))
goto next;
+ if (!l_memeqzero(bss->owe_trans_bssid, 6))
+ goto next;
+
/*
* Override time_stamp so that this entry is removed on
* the next scan
@@ -2909,6 +2912,10 @@ static struct l_dbus_message *station_dbus_connect_hidden_network(
l_queue_get_entries(station->hidden_bss_list_sorted);
struct scan_bss *target = network_bss_select(network, true);
+ /* Treat OWE transition networks special */
+ if (!l_memeqzero(target->owe_trans_bssid, 6))
+ goto not_hidden;
+
for (; entry; entry = entry->next) {
struct scan_bss *bss = entry->data;
@@ -2920,6 +2927,7 @@ static struct l_dbus_message *station_dbus_connect_hidden_network(
message);
}
+not_hidden:
return dbus_error_not_hidden(message);
}