aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorAshwini Patil <c_apati@qti.qualcomm.com>2017-04-10 06:58:49 (GMT)
committerJouni Malinen <j@w1.fi>2017-04-24 08:10:44 (GMT)
commit9a72bfe9a44efdc404b62fc5ffa7bd2198635843 (patch)
treeca45832d345ebcfe77814e6392705f0bd2ec3004 /wpa_supplicant/ctrl_iface.c
parentfa61bff6ae7dade7795fbe5e97e2aed6f7812607 (diff)
downloadhostap-9a72bfe9a44efdc404b62fc5ffa7bd2198635843.zip
hostap-9a72bfe9a44efdc404b62fc5ffa7bd2198635843.tar.gz
hostap-9a72bfe9a44efdc404b62fc5ffa7bd2198635843.tar.bz2
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 <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index f235edc..ad3701d 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);