]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
QCA vendor attributes for setting channel width
authorMin Liu <minliu@codeaurora.org>
Fri, 5 Jun 2020 03:55:26 +0000 (11:55 +0800)
committerJouni Malinen <j@w1.fi>
Sat, 6 Jun 2020 12:18:13 +0000 (15:18 +0300)
Define QCA vendor attribute in SET(GET)_WIFI_CONFIGURATION to
dynamically configure capabilities for channel width.

Signed-off-by: Min Liu <minliu@codeaurora.org>
src/common/qca-vendor.h

index b81bbbe2a1f2eb08fa4defedce215f490427d84a..a781f337e029e1363dbab0d09b00892461294211 100644 (file)
@@ -2135,6 +2135,20 @@ enum qca_wlan_vendor_attr_config {
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
 
+       /* 8-bit unsigned value to configure the maximum supported channel width
+        * for STA mode. If this value is configured when STA is in connected
+        * state, it should not exceed the negotiated channel width. If it is
+        * configured when STA is in disconnected state, the configured value
+        * will take effect for the next immediate connection.
+        * Possible values are:
+        *   NL80211_CHAN_WIDTH_20
+        *   NL80211_CHAN_WIDTH_40
+        *   NL80211_CHAN_WIDTH_80
+        *   NL80211_CHAN_WIDTH_80P80
+        *   NL80211_CHAN_WIDTH_160
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
+
        /* 8-bit unsigned value to configure the maximum number of subframes of
         * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
         * it is decided by the hardware.