From: Shivani Baranwal Date: Mon, 19 Jan 2026 06:59:26 +0000 (+0530) Subject: Add QCA vendor config to allow SCC with indoor channel per peer protocol X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e25599b77c50d532e302ee7be07df61be025fe2;p=thirdparty%2Fhostap.git Add QCA vendor config to allow SCC with indoor channel per peer protocol 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 --- diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index fc0cc4234..69d57c4fd 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -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 =