]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor config to allow SCC with indoor channel per peer protocol
authorShivani Baranwal <shivbara@qti.qualcomm.com>
Mon, 19 Jan 2026 06:59:26 +0000 (12:29 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 23 Jan 2026 11:19:48 +0000 (13:19 +0200)
Define bitmap config attribute
QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_PEER_PROTOCOL_INDOOR_CH_STA_SCC to
support STA connected indoor channel for peer protocol like P2P
and NAN.
The bitmap definition:
- bit 0: Setting bit0 indicates to allow SCC with STA connected indoor
         channel for P2P
- bit 1: Setting bit1 indicates to allow SCC with STA connected indoor
         channel for NAN

This attribute provides more granular control over which peer to peer
protocols can operate in SCC mode with STA connected indoor channels
compared to the previously added
QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_STA_INDOOR_CH_SCC.

Signed-off-by: Shivani Baranwal <shivbara@qti.qualcomm.com>
src/common/qca-vendor.h

index fc0cc42344f4690a0f28d7bdd6b239244c8673ea..69d57c4fd6fdea4c9ded49b5be1cd51d558c2042 100644 (file)
@@ -4179,6 +4179,10 @@ enum qca_wlan_vendor_attr_config {
         * channel and either remain on the current channel or switch to other
         * valid channel, depending on regulatory and underlying driver policy.
         * 1 - Enable, 0 - Disable.
+        *
+        * See
+        * @QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_PEER_PROTOCOL_INDOOR_CH_STA_SCC
+        * for a more granular configuration of this per peer protocol.
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_STA_INDOOR_CH_SCC = 139,
 
@@ -4218,6 +4222,27 @@ enum qca_wlan_vendor_attr_config {
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_QSH_SCAN_CTRL = 141,
 
+       /* 8-bit bitmap to enable the feature to allow SCC with STA connected
+        * indoor channel per peer protocol to the driver in STA mode. This
+        * configuration is applicable only when a STA interface is in
+        * connected state.
+        * When the STA disconnects, any peer protocol interface present in
+        * SCC with STA connected indoor channel will re-evaluate its operating
+        * channel and either remain on the current channel or switch to other
+        * valid channel, depending on regulatory and underlying driver policy.
+        *
+        * Either @QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_STA_INDOOR_CH_SCC attribute
+        * or @QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_PEER_PROTOCOL_INDOOR_CH_STA_SCC
+        * attribute can be used by userspace at a time to allow indoor channel
+        * SCC with STA.
+        *
+        * bit 0: Setting bit0 indicates to allow SCC with STA connected indoor
+        *        channel for P2P
+        * bit 1: Setting bit1 indicates to allow SCC with STA connected indoor
+        *        channel for NAN
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_PEER_PROTOCOL_INDOOR_CH_STA_SCC = 142,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =