wpa_cli: Implement TDLS start/cancel channel switching commands
For the start operation, this includes appropriate parameters for specifying channel and peer information. The cancel operation includes peer information. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
This commit is contained in:
parent
72b2605f15
commit
7db53bb8c5
1 changed files with 22 additions and 0 deletions
|
@ -2426,6 +2426,20 @@ static int wpa_cli_cmd_wmm_ac_status(struct wpa_ctrl *ctrl, int argc,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int wpa_cli_cmd_tdls_chan_switch(struct wpa_ctrl *ctrl, int argc,
|
||||||
|
char *argv[])
|
||||||
|
{
|
||||||
|
return wpa_cli_cmd(ctrl, "TDLS_CHAN_SWITCH", 2, argc, argv);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int wpa_cli_cmd_tdls_cancel_chan_switch(struct wpa_ctrl *ctrl, int argc,
|
||||||
|
char *argv[])
|
||||||
|
{
|
||||||
|
return wpa_cli_cmd(ctrl, "TDLS_CANCEL_CHAN_SWITCH", 1, argc, argv);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int wpa_cli_cmd_signal_poll(struct wpa_ctrl *ctrl, int argc,
|
static int wpa_cli_cmd_signal_poll(struct wpa_ctrl *ctrl, int argc,
|
||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -3002,6 +3016,14 @@ static struct wpa_cli_cmd wpa_cli_commands[] = {
|
||||||
{ "wmm_ac_status", wpa_cli_cmd_wmm_ac_status, NULL,
|
{ "wmm_ac_status", wpa_cli_cmd_wmm_ac_status, NULL,
|
||||||
cli_cmd_flag_none,
|
cli_cmd_flag_none,
|
||||||
"= show status for Wireless Multi-Media Admission-Control" },
|
"= show status for Wireless Multi-Media Admission-Control" },
|
||||||
|
{ "tdls_chan_switch", wpa_cli_cmd_tdls_chan_switch, NULL,
|
||||||
|
cli_cmd_flag_none,
|
||||||
|
"<addr> <oper class> <freq> [sec_channel_offset=] [center_freq1=] "
|
||||||
|
"[center_freq2=] [bandwidth=] [ht|vht] = enable channel switching "
|
||||||
|
"with TDLS peer" },
|
||||||
|
{ "tdls_cancel_chan_switch", wpa_cli_cmd_tdls_cancel_chan_switch, NULL,
|
||||||
|
cli_cmd_flag_none,
|
||||||
|
"<addr> = disable channel switching with TDLS peer <addr>" },
|
||||||
{ "signal_poll", wpa_cli_cmd_signal_poll, NULL,
|
{ "signal_poll", wpa_cli_cmd_signal_poll, NULL,
|
||||||
cli_cmd_flag_none,
|
cli_cmd_flag_none,
|
||||||
"= get signal parameters" },
|
"= get signal parameters" },
|
||||||
|
|
Loading…
Reference in a new issue