3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 13:59:24 +01:00

station: check if connected before allowing Roam()

This commit is contained in:
James Prestwood 2021-09-23 15:57:27 -07:00 committed by Denis Kenzior
parent b6884df39a
commit dfd304353d

View File

@ -4081,6 +4081,9 @@ static struct l_dbus_message *station_force_roam(struct l_dbus *dbus,
if (mac_len != 6)
return dbus_error_invalid_args(message);
if (!station->connected_network)
return dbus_error_not_connected(message);
target = network_bss_find_by_addr(station->connected_network, mac);
if (!target || target == station->connected_bss)
return dbus_error_invalid_args(message);