From ebd5e764f99b394d73ba6be8f28ade312c2ea67f Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Fri, 26 Jun 2020 17:47:13 +0530 Subject: [PATCH] Vendor attribute to configure QoS/AC upgrade for UDP frames Introduce a new attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE to configure access category override for UDP frames. Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 3304ea80c..448d52682 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -2260,6 +2260,18 @@ enum qca_wlan_vendor_attr_config { */ QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, + /* 8-bit unsigned value. This attribute takes the QoS/access category + * value represented by the enum qca_wlan_ac_type and expects the driver + * to upgrade the UDP frames to this access category. The value of + * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the + * DSCP value configured in the frame with the intention to only upgrade + * the access category. That said, it is not intended to downgrade the + * access category for the frames. + * Set the value to 0 (corresponding to BE) if the QoS upgrade needs + * to be disabled. + */ + QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, + /* keep last */ QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =