]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
QCA nl80211 vendor attribute for specific sub-20 MHz channel width
authorGaole Zhang <gaolez@qti.qualcomm.com>
Wed, 1 Mar 2017 07:56:32 +0000 (15:56 +0800)
committerJouni Malinen <j@w1.fi>
Wed, 1 Mar 2017 09:55:04 +0000 (11:55 +0200)
Define a new attribute QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH.
This attribute can set a station device to work in 5 or 10 MHz channel
width while in disconnect state.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/common/qca-vendor.h

index 934f09d713f994973e96ce7ef2774f3b8be39b39..209944d1d9a2a9db851f0e839a00dcfd3ce39ee0 100644 (file)
@@ -1133,6 +1133,14 @@ enum qca_wlan_vendor_attr_config {
        QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
        /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
        QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
+       /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
+        * station device while in disconnect state. The attribute use the
+        * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
+        * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
+        * 10 MHz channel width, the station will not connect to a BSS using 20
+        * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
+        * clear this constraint. */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
 
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,