From 6f293b32112adf3b11e2af275dbe79e590711503 Mon Sep 17 00:00:00 2001 From: Chunquan Luo Date: Mon, 7 Aug 2023 23:51:50 -0700 Subject: [PATCH] QCA vendor attributes for updating roaming AP BSSID info Add vendor attribute IDs QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID, QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID, and QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID for updating roaming AP BSSID to user space to enable user space collecting the BSSID for roaming issues. Signed-off-by: Chunquan Luo --- src/common/qca-vendor.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index ba78c6b28..3773368c4 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -13530,6 +13530,38 @@ enum qca_wlan_vendor_attr_roam_stats_info { QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43, /* Attribute used for padding for 64-bit alignment */ QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44, + /* 6-byte MAC address used by the driver to send roam stats information + * of the original AP BSSID. The original AP is the connected AP before + * roam happens, regardless of the roam resulting in success or failure. + * This attribute is only present when + * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of + * 0 (success) or 1 (failure). + * For non-MLO scenario, it indicates the original connected AP BSSID. + * For MLO scenario, it indicates the original BSSID of the link + * for which the reassociation occurred during the roam. + */ + QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45, + /* 6-byte MAC address used by the driver to send roam stats information + * of the roam candidate AP BSSID when roam failed. This is only present + * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of + * 1 (failure). If the firmware updates more than one candidate AP BSSID + * to the driver, the driver only fills the last candidate AP BSSID and + * reports it to user space. + * For non-MLO scenario, it indicates the last candidate AP BSSID. + * For MLO scenario, it indicates the AP BSSID which may be the primary + * link BSSID or a nonprimary link BSSID. + */ + QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46, + /* 6-byte MAC address used by the driver to send roam stats information + * of the roamed AP BSSID when roam succeeds. This is only present when + * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of + * 0 (success). + * For non-MLO scenario, it indicates the new AP BSSID to which has + * been successfully roamed. + * For MLO scenario, it indicates the new AP BSSID of the link on + * which the reassociation occurred during the roam. + */ + QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47, /* keep last */ QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,