From 944f359e19b1014642705ea1538ec736f8fd5e84 Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Wed, 14 Jun 2017 11:37:37 +0530 Subject: [PATCH] Introduce a vendor command to specify the active Type Of Service This commit introduces QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS to specify the active Type Of Service on the specific interface. This can be used to modify some of the low level scan parameters (off channel dwell time, home channel time) in the driver/firmware. Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 1f31c9c73..1941efc6e 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -323,6 +323,15 @@ enum qca_radiotap_vendor_ids { * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to * be stopped. + * + * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the + * specific interface. This can be used to modify some of the low level + * scan parameters (off channel dwell time, home channel time) in the + * driver/firmware. These parameters are maintained within the host driver. + * This command is valid only when the interface is in the connected state. + * These scan parameters shall be reset by the driver/firmware once + * disconnected. The attributes used with this command are defined in + * enum qca_wlan_vendor_attr_active_tos. */ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, @@ -453,6 +462,7 @@ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, + QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, }; @@ -3800,4 +3810,25 @@ enum qca_wlan_vendor_attr_spectral_scan { QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, }; +enum qca_wlan_vendor_tos { + QCA_WLAN_VENDOR_TOS_BK = 0, + QCA_WLAN_VENDOR_TOS_BE = 1, + QCA_WLAN_VENDOR_TOS_VI = 2, + QCA_WLAN_VENDOR_TOS_VO = 3, +}; + +/** + * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command + * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. + */ +enum qca_wlan_vendor_attr_active_tos { + QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, + /* Type Of Service - Represented by qca_wlan_vendor_tos */ + QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, + /* Flag attribute representing the start (attribute included) or stop + * (attribute not included) of the respective TOS. + */ + QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, +}; + #endif /* QCA_VENDOR_H */