From 9a72bfe9a44efdc404b62fc5ffa7bd2198635843 Mon Sep 17 00:00:00 2001 From: Ashwini Patil Date: Mon, 10 Apr 2017 12:28:49 +0530 Subject: [PATCH] Add control interface command to enable/disable roaming The new "SET roaming <0/1>" command can now be used to control driver-based roaming. Signed-off-by: Jouni Malinen --- wpa_supplicant/ctrl_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index f235edcf2..ad3701d39 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -632,6 +632,8 @@ static int wpa_supplicant_ctrl_iface_set(struct wpa_supplicant *wpa_s, ret = wpas_ctrl_set_relative_band_adjust(wpa_s, value); } else if (os_strcasecmp(cmd, "ric_ies") == 0) { ret = wpas_ctrl_iface_set_ric_ies(wpa_s, value); + } else if (os_strcasecmp(cmd, "roaming") == 0) { + ret = wpa_drv_roaming(wpa_s, atoi(value), NULL); } else { value[-1] = '='; ret = wpa_config_process_global(wpa_s->conf, cmd, -1);