|
@@ -676,6 +676,12 @@ static int wpa_cli_cmd_reassociate(struct wpa_ctrl *ctrl, int argc,
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+static int wpa_cli_cmd_reattach(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
|
|
|
+{
|
|
|
|
+ return wpa_ctrl_command(ctrl, "REATTACH");
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
static int wpa_cli_cmd_preauthenticate(struct wpa_ctrl *ctrl, int argc,
|
|
static int wpa_cli_cmd_preauthenticate(struct wpa_ctrl *ctrl, int argc,
|
|
char *argv[])
|
|
char *argv[])
|
|
{
|
|
{
|
|
@@ -2510,6 +2516,9 @@ static struct wpa_cli_cmd wpa_cli_commands[] = {
|
|
{ "reassociate", wpa_cli_cmd_reassociate, NULL,
|
|
{ "reassociate", wpa_cli_cmd_reassociate, NULL,
|
|
cli_cmd_flag_none,
|
|
cli_cmd_flag_none,
|
|
"= force reassociation" },
|
|
"= force reassociation" },
|
|
|
|
+ { "reattach", wpa_cli_cmd_reattach, NULL,
|
|
|
|
+ cli_cmd_flag_none,
|
|
|
|
+ "= force reassociation back to the same BSS" },
|
|
{ "preauthenticate", wpa_cli_cmd_preauthenticate, wpa_cli_complete_bss,
|
|
{ "preauthenticate", wpa_cli_cmd_preauthenticate, wpa_cli_complete_bss,
|
|
cli_cmd_flag_none,
|
|
cli_cmd_flag_none,
|
|
"<BSSID> = force preauthentication" },
|
|
"<BSSID> = force preauthentication" },
|