wpa_cli: Add support for SCS, MSCS, and DSCP commands

Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
This commit is contained in:
Veerendranath Jakkam 2021-09-29 03:40:30 +05:30 committed by Jouni Malinen
parent bcaa1ea084
commit afcadbbf4e

View file

@ -3228,6 +3228,30 @@ static int wpa_cli_cmd_pasn_deauth(struct wpa_ctrl *ctrl, int argc,
#endif /* CONFIG_PASN */
static int wpa_cli_cmd_mscs(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
return wpa_cli_cmd(ctrl, "MSCS", 1, argc, argv);
}
static int wpa_cli_cmd_scs(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
return wpa_cli_cmd(ctrl, "SCS", 2, argc, argv);
}
static int wpa_cli_cmd_dscp_resp(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
return wpa_cli_cmd(ctrl, "DSCP_RESP", 1, argc, argv);
}
static int wpa_cli_cmd_dscp_query(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
return wpa_cli_cmd(ctrl, "DSCP_QUERY", 1, argc, argv);
}
enum wpa_cli_cmd_flags {
cli_cmd_flag_none = 0x00,
cli_cmd_flag_sensitive = 0x01
@ -3935,6 +3959,18 @@ static const struct wpa_cli_cmd wpa_cli_commands[] = {
cli_cmd_flag_none,
"bssid=<BSSID> = Remove PASN PTKSA state" },
#endif /* CONFIG_PASN */
{ "mscs", wpa_cli_cmd_mscs, NULL,
cli_cmd_flag_none,
"<add|remove|change> [up_bitmap=<hex byte>] [up_limit=<integer>] [stream_timeout=<in TUs>] [frame_classifier=<hex bytes>] = Configure MSCS request" },
{ "scs", wpa_cli_cmd_scs, NULL,
cli_cmd_flag_none,
"[scs_id=<decimal number>] <add|remove|change> [scs_up=<0-7>] [classifier_type=<4|10>] [classifier params based on classifier type] [tclas_processing=<0|1>] [scs_id=<decimal number>] ... = Send SCS request" },
{ "dscp_resp", wpa_cli_cmd_dscp_resp, NULL,
cli_cmd_flag_none,
"<[reset]>/<[solicited] [policy_id=1 status=0...]> [more] = Send DSCP response" },
{ "dscp_query", wpa_cli_cmd_dscp_query, NULL,
cli_cmd_flag_none,
"wildcard/domain_name=<string> = Send DSCP Query" },
{ NULL, NULL, NULL, cli_cmd_flag_none, NULL }
};