Update roam stats of AP BSSID to user space in a QCA vendor attribute

Fetch AP BSSID from each roam connection frame and cache the info in the
WLAN driver. When user space gets roam stats by
QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO, user space can now collect the AP
BSSID info for roam issue.

Signed-off-by: Chunquan Luo <quic_chunquan@quicinc.com>
This commit is contained in:
Chunquan Luo 2023-09-21 19:55:25 -07:00 committed by Jouni Malinen
parent 881cb4198b
commit ed89ab429f

View file

@ -13472,6 +13472,13 @@ enum qca_wlan_vendor_attr_roam_stats_frame_info {
QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3, QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
/* Attribute used for padding for 64-bit alignment */ /* Attribute used for padding for 64-bit alignment */
QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4, QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
/* This attribute indicates a 6-byte MAC address representing
* the BSSID of the AP.
* For non-MLO scenario, it indicates the 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_FRAME_BSSID = 5,
/* keep last */ /* keep last */
QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,