From 9c2d6c4232af70b8554cb2c581e283b09d412c6f Mon Sep 17 00:00:00 2001 From: Chenming Huang Date: Tue, 28 Nov 2023 08:58:24 +0530 Subject: [PATCH] Add QCA vendor attributes for link id for HT-scan/ACS command For AP MLD case, HT-scan and ACS happens per link. To determine the correct link, link id is required. Signed-off-by: Chenming Huang --- src/common/qca-vendor.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index ee9ecadbd..aee861efc 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -1797,6 +1797,11 @@ enum qca_wlan_vendor_attr_p2p_listen_offload { * scoring. In case scan was performed on a partial set of channels configured * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME * (in ms), scan only the remaining channels. + * + * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8). + * Used with command to configure ACS operation for a specific link affiliated + * to an AP MLD. + * */ enum qca_wlan_vendor_attr_acs_offload { QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, @@ -1820,6 +1825,7 @@ enum qca_wlan_vendor_attr_acs_offload { QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, + QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21, /* keep last */ QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, @@ -2383,6 +2389,10 @@ enum qca_wlan_vendor_scan_priority { * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit * alignment. + * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan + * when AP is operating as MLD to specify which link is requesting the + * scan or which link the scan result is for. No need of this attribute + * in other cases. */ enum qca_wlan_vendor_attr_scan { QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, @@ -2400,6 +2410,7 @@ enum qca_wlan_vendor_attr_scan { QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14, + QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15, QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_SCAN_MAX = QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1