]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Set Wi-Fi Configuration attribute to restrict offchannel operations
authorSunil Dutt <usdutt@qti.qualcomm.com>
Fri, 12 May 2017 13:27:49 +0000 (18:57 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 22 May 2017 21:10:01 +0000 (00:10 +0300)
This commit defines an attribute to
QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION -
QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL which can be used to
restrict offchannel operations on the AP/GO interface.

The goal is to restrict any operations which would cause the AP/GO to
leave its operating channel.

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

index 24d25ce5c1558a1296113e13a249320728f5d100..8037e53c70efc06e1cfa1fba6ab56b7eae8e0026 100644 (file)
@@ -1345,6 +1345,35 @@ enum qca_wlan_vendor_attr_config {
         * etc.).
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
+       /*
+        * 8 bit unsigned value that is set on an AP/GO virtual interface to
+        * disable operations that would cause the AP/GO to leave its operating
+        * channel.
+        *
+        * This will restrict the scans to the AP/GO operating channel and the
+        * channels of the other band, if DBS is supported.A STA/CLI interface
+        * brought up after this setting is enabled, will be restricted to
+        * connecting to devices only on the AP/GO interface's operating channel
+        * or on the other band in DBS case. P2P supported channel list is
+        * modified, to only include AP interface's operating-channel and the
+        * channels of the other band if DBS is supported.
+        *
+        * These restrictions are only applicable as long as the AP/GO interface
+        * is alive. If the AP/GO interface is brought down then this
+        * setting/restriction is forgotten.
+        *
+        * If this variable is set on an AP/GO interface while a multi-channel
+        * concurrent session is active, it has no effect on the operation of
+        * the current interfaces, other than restricting the scan to the AP/GO
+        * operating channel and the other band channels if DBS is supported.
+        * However, if the STA is brought down and restarted then the new STA
+        * connection will either be formed on the AP/GO channel or on the
+        * other band in a DBS case. This is because of the scan being
+        * restricted on these channels as mentioned above.
+        *
+        * 1-Disable offchannel operations, 0-Enable offchannel operations.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_OFFCHANNEL = 49,
 
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,