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

station: move Roam() under station debug interface

This commit is contained in:
James Prestwood 2021-08-12 12:07:22 -07:00 committed by Denis Kenzior
parent 3afa5e570d
commit 77c4d311ff

View File

@ -3783,10 +3783,6 @@ static void station_setup_diagnostic_interface(
l_dbus_interface_method(interface, "GetDiagnostics", 0, l_dbus_interface_method(interface, "GetDiagnostics", 0,
station_get_diagnostics, "a{sv}", "", station_get_diagnostics, "a{sv}", "",
"diagnostics"); "diagnostics");
if (iwd_is_developer_mode())
l_dbus_interface_method(interface, "Roam", 0,
station_force_roam, "", "ay", "mac");
} }
static void station_destroy_diagnostic_interface(void *user_data) static void station_destroy_diagnostic_interface(void *user_data)
@ -3841,6 +3837,8 @@ static void station_setup_debug_interface(
l_dbus_interface_method(interface, "ConnectBssid", 0, l_dbus_interface_method(interface, "ConnectBssid", 0,
station_force_connect_bssid, "", "ay", station_force_connect_bssid, "", "ay",
"mac"); "mac");
l_dbus_interface_method(interface, "Roam", 0,
station_force_roam, "", "ay", "mac");
} }
static void ap_roam_frame_event(const struct mmpdu_header *hdr, static void ap_roam_frame_event(const struct mmpdu_header *hdr,