Browse Source

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>
Ashwini Patil 8 years ago
parent
commit
9a72bfe9a4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wpa_supplicant/ctrl_iface.c

+ 2 - 0
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);