]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add control interface command to enable/disable roaming
authorAshwini Patil <c_apati@qti.qualcomm.com>
Mon, 10 Apr 2017 06:58:49 +0000 (12:28 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 24 Apr 2017 08:10:44 +0000 (11:10 +0300)
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>
wpa_supplicant/ctrl_iface.c

index f235edcf259768907317732a481b0c53441aeb15..ad3701d391cce0836a59a7020ca55caa69b6e207 100644 (file)
@@ -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);