DSCP: DSCP policy capability configuration

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>
This commit is contained in:
Veerendranath Jakkam 2021-08-31 09:37:09 +05:30 committed by Jouni Malinen
parent 8471d940e3
commit fe2a44485e
2 changed files with 4 additions and 0 deletions

View file

@ -922,6 +922,8 @@ static int wpa_supplicant_ctrl_iface_set(struct wpa_supplicant *wpa_s,
return -1; return -1;
wnm_set_coloc_intf_elems(wpa_s, elems); wnm_set_coloc_intf_elems(wpa_s, elems);
#endif /* CONFIG_WNM */ #endif /* CONFIG_WNM */
} else if (os_strcasecmp(cmd, "enable_dscp_policy_capa") == 0) {
wpa_s->enable_dscp_policy_capa = !!atoi(value);
} else { } else {
value[-1] = '='; value[-1] = '=';
ret = wpa_config_process_global(wpa_s->conf, cmd, -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); wpas_clear_driver_signal_override(wpa_s);
wpa_s->disable_scs_support = 0; wpa_s->disable_scs_support = 0;
wpa_s->disable_mscs_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_eapol = 0;
wpa_s->oci_freq_override_saquery_req = 0; wpa_s->oci_freq_override_saquery_req = 0;
wpa_s->oci_freq_override_saquery_resp = 0; wpa_s->oci_freq_override_saquery_resp = 0;

View file

@ -1498,6 +1498,7 @@ struct wpa_supplicant {
#endif /* CONFIG_TESTING_OPTIONS */ #endif /* CONFIG_TESTING_OPTIONS */
struct dl_list active_scs_ids; struct dl_list active_scs_ids;
bool ongoing_scs_req; bool ongoing_scs_req;
unsigned int enable_dscp_policy_capa:1;
}; };