commit 99a71ee8194e19a8782e5c25db9e9b77ba2633fa
parent 143b346a4b71a04af9baf52897e231005d32ba36
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 10 Aug 2022 16:16:15 -0700
station: check for matching SSID in Roam()
This is a debug method, but still should verify the SSID in the
target matches the current BSS.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/station.c b/src/station.c
@@ -4346,6 +4346,13 @@ static struct l_dbus_message *station_force_roam(struct l_dbus *dbus,
if (!target || target == station->connected_bss)
return dbus_error_invalid_args(message);
+ if (station->connected_bss->ssid_len != target->ssid_len)
+ goto invalid_args;
+
+ if (memcmp(station->connected_bss->ssid, target->ssid,
+ target->ssid_len))
+ goto invalid_args;
+
l_debug("Attempting forced roam to BSS "MAC, MAC_STR(mac));
/* The various roam routines expect this to be set from scanning */