]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor attributes for link id for HT-scan/ACS command
authorChenming Huang <quic_chenhuan@quicinc.com>
Tue, 28 Nov 2023 03:28:24 +0000 (08:58 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 5 Dec 2023 10:52:01 +0000 (12:52 +0200)
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 <quic_chenhuan@quicinc.com>
src/common/qca-vendor.h

index ee9ecadbd4ce6535d2d3cfc083d3bf1c74f6e4b0..aee861efc3dd252b6d03938f3d1e04073159c7fc 100644 (file)
@@ -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