]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Introduce a vendor command to specify the active Type Of Service
authorSunil Dutt <usdutt@qti.qualcomm.com>
Wed, 14 Jun 2017 06:07:37 +0000 (11:37 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 23 Jun 2017 16:23:38 +0000 (19:23 +0300)
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 <jouni@qca.qualcomm.com>
src/common/qca-vendor.h

index 1f31c9c73bd2ce68be5f2da4b445b410d94ba6c5..1941efc6edbfd06689510e8ae6c3e3cd8f490270 100644 (file)
@@ -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 */