]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DSCP: DSCP policy capability configuration
authorVeerendranath Jakkam <vjakkam@codeaurora.org>
Tue, 31 Aug 2021 04:07:09 +0000 (09:37 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 28 Sep 2021 08:07:21 +0000 (11:07 +0300)
The DSCP policy capability is disabled by default. The user frameworks
which have support for handling DSCP policy request messages need to
enable this capability explicitly to allow wpa_supplicant to advertise
the capability to the AP and allow the related frames to be processed.

Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/wpa_supplicant_i.h

index 15a7ba2b9d456ce1b06bb0fb1c3aa07c20162be1..aca728e4a5fd5cae43aa6a979cdb352e37c38c23 100644 (file)
@@ -922,6 +922,8 @@ static int wpa_supplicant_ctrl_iface_set(struct wpa_supplicant *wpa_s,
                        return -1;
                wnm_set_coloc_intf_elems(wpa_s, elems);
 #endif /* CONFIG_WNM */
+       } else if (os_strcasecmp(cmd, "enable_dscp_policy_capa") == 0) {
+               wpa_s->enable_dscp_policy_capa = !!atoi(value);
        } else {
                value[-1] = '=';
                ret = wpa_config_process_global(wpa_s->conf, cmd, -1);
@@ -8570,6 +8572,7 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
        wpas_clear_driver_signal_override(wpa_s);
        wpa_s->disable_scs_support = 0;
        wpa_s->disable_mscs_support = 0;
+       wpa_s->enable_dscp_policy_capa = 0;
        wpa_s->oci_freq_override_eapol = 0;
        wpa_s->oci_freq_override_saquery_req = 0;
        wpa_s->oci_freq_override_saquery_resp = 0;
index cda8a114e1766f375d489d6721e0a89a9245e421..6e54a228398a7bce1bb58cdd0e12e27a6d3dd158 100644 (file)
@@ -1498,6 +1498,7 @@ struct wpa_supplicant {
 #endif /* CONFIG_TESTING_OPTIONS */
        struct dl_list active_scs_ids;
        bool ongoing_scs_req;
+       unsigned int enable_dscp_policy_capa:1;
 };