]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Add support for SCS, MSCS, and DSCP commands
authorVeerendranath Jakkam <vjakkam@codeaurora.org>
Tue, 28 Sep 2021 22:10:30 +0000 (03:40 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 7 Oct 2021 20:46:28 +0000 (23:46 +0300)
Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
wpa_supplicant/wpa_cli.c

index 32d006f52071fadd8b1d5c65ddfe2284871d249c..b72983e9c3f7c8c44c57a91935499450784ed709 100644 (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 }
 };