From: Shivani Baranwal Date: Wed, 17 Sep 2025 05:52:21 +0000 (+0530) Subject: QCA vendor attribute to allow P2P SCC with STA connected DFS channel X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c513a40770e8ef64be3c5707c852c97768110211;p=thirdparty%2Fhostap.git QCA vendor attribute to allow P2P SCC with STA connected DFS channel Define config attributes to support STA connected DFS channel for P2P. Add a new feature flag @QCA_WLAN_VENDOR_FEATURE_SUPPORT_STA_DFS_CH_SCC_P2P for the driver to indicate STA connected DFS channel SCC support. Signed-off-by: Shivani Baranwal --- diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 97e50e2ff..7eb223120 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -2489,6 +2489,10 @@ enum qca_wlan_vendor_acs_hw_mode { * support for SCC (Single Channel Concurrency) with a STA connected * indoor channel for P2P GO, SAP, and NAN. * + * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_STA_DFS_CH_SCC_P2P: Flag indicates driver + * support for SCC (Single Channel Concurrency) with a STA connected + * DFS channel for P2P. + * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits */ enum qca_wlan_vendor_features { @@ -2525,6 +2529,7 @@ enum qca_wlan_vendor_features { QCA_WLAN_VENDOR_FEATURE_SUPPORT_TX_POWER_LIMIT = 30, QCA_WLAN_VENDOR_FEATURE_SUPPORT_USER_SCENARIO_TO_DSI_MAPPING = 31, QCA_WLAN_VENDOR_FEATURE_SUPPORT_STA_INDOOR_CH_SCC = 32, + QCA_WLAN_VENDOR_FEATURE_SUPPORT_STA_DFS_CH_SCC_P2P = 33, NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ }; @@ -4122,6 +4127,29 @@ enum qca_wlan_vendor_attr_config { */ QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_STA_INDOOR_CH_SCC = 139, + /* 8-bit unsigned value to enable or disable the feature to allow + * SCC with STA connected DFS channel for P2P GO/Client to the driver in + * STA mode. This configuration is applicable only when a STA interface + * is in connected state and can be updated/modified only in STA + * disconnected state. + * + * When enabled, behavior on a P2P Client is following: On STA + * disconnect/roam/CSA to different channel, the P2P Client + * interface operating in SCC with STA on DFS channel will disconnect + * internally. No Deauthentication frame is sent over the air to the + * P2P GO on the DFS channel. + * + * When enabled, behavior on a P2P GO is following: On STA disconnect/ + * roam/CSA to different channel, the P2P GO interface will initiate a + * Channel Switch Announcement (CSA) to switch to a valid channel + * depending on regulatory and underlying driver policy. Beacon frames + * with CSA element will be sent in compliance with regulatories after + * STA moved away from the DFS channel due to disconnect/roam/CSA. + * + * 1 - Enable, 0 - Disable. + */ + QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_STA_DFS_CH_SCC_P2P = 140, + /* keep last */ QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =