]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add link ID QCA vendor attributes for MLO SR operation
authorGangadhar Kavalastramath <quic_gkavalas@quicinc.com>
Wed, 26 Feb 2025 16:17:42 +0000 (21:47 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 30 Apr 2025 08:13:29 +0000 (11:13 +0300)
Add a link ID attribute and nesting to support per link spatial reuse
operation for MLO STA and MLO SAP modes.

Per-link SR parameters are encapsulated within
QCA_WLAN_VENDOR_ATTR_SR_MLO_LINKS nested attribute. Each record includes a
link ID specified by the QCA_WLAN_VENDOR_ATTR_SR_MLO_LINK_ID attribute.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/common/qca-vendor.h

index 63fee57e06d83563583a581f15a8db81e989b0e7..aa93888b90bff2e2eb9614695199539a3969fe8c 100644 (file)
@@ -16453,12 +16453,37 @@ enum qca_wlan_vendor_attr_sr_params {
  * This attribute is used in response from the driver to a command in which
  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  * %QCA_WLAN_SR_OPERATION_GET_STATS.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_SR_MLO_LINKS: Array of nested links each identified
+ * by %QCA_WLAN_VENDOR_ATTR_SR_MLO_LINK_ID.
+ * This attribute enables user to configure a single or multiple links by
+ * nesting %QCA_WLAN_VENDOR_ATTR_SR_MLO_LINK_ID and corresponding SR
+ * configuration attributes defined in enum qca_wlan_vendor_attr_sr.
+ * In %QCA_WLAN_SR_OPERATION_GET_PARAMS or %QCA_WLAN_SR_OPERATION_GET_STATS
+ * in enum qca_wlan_sr_operation, %QCA_WLAN_VENDOR_ATTR_SR_MLO_LINK_ID shall
+ * be used to pack the per link configuration that are currently in use.
+ * For STA interface, this attribute is applicable only in connected state
+ * when the current connection is MLO capable. The valid values of
+ * %QCA_WLAN_VENDOR_ATTR_SR_MLO_LINK_ID are the link IDs of the connected AP
+ * MLD links.
+ * For AP interface, this attribute is applicable only after adding MLO
+ * links to the AP interface with %NL80211_CMD_ADD_LINK and the valid values
+ * of %QCA_WLAN_VENDOR_ATTR_SR_MLO_LINK_ID are the link IDs specified in
+ * %NL80211_CMD_ADD_LINK while adding the MLO links to the AP interface.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_SR_MLO_LINK_ID: 8-bit unsigned value. Used to specify
+ * the MLO link ID of a link that is being configured. This attribute must be
+ * included in each record nested under %QCA_WLAN_VENDOR_ATTR_SR_MLO_LINKS and
+ * may be included without nesting to indicate the target link for
+ * configuration attributes.
  */
 enum qca_wlan_vendor_attr_sr {
        QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
        QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
        QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
        QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
+       QCA_WLAN_VENDOR_ATTR_SR_MLO_LINKS = 4,
+       QCA_WLAN_VENDOR_ATTR_SR_MLO_LINK_ID = 5,
 
        /* Keep last */
        QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,