mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
station: check if connected before allowing Roam()
This commit is contained in:
parent
b6884df39a
commit
dfd304353d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user