qcacld-3.0: Use peer link address for multi link

Currently, Host driver is using MLD mac address
for TWT set peer capabilities after the roaming.

This change is to use peer link address for setting
TWT peer caps after roaming, for multi link roaming.

Change-Id: I6cdfda5ee9f75a3509b5f12bdbbce92f8202397c
CRs-Fixed: 3618635
This commit is contained in:
Aasir Rasheed
2023-09-20 21:37:35 +05:30
committed by Rahul Choudhary
parent 52cc6a9f6e
commit bfc48d43fa
2 changed files with 11 additions and 3 deletions

View File

@@ -2568,6 +2568,7 @@ lim_fill_roamed_peer_twt_caps(struct mac_context *mac_ctx,
uint32_t status; uint32_t status;
tDot11fReAssocResponse *reassoc_rsp; tDot11fReAssocResponse *reassoc_rsp;
struct pe_session *pe_session; struct pe_session *pe_session;
struct qdf_mac_addr mac_addr;
pe_session = pe_find_session_by_vdev_id(mac_ctx, vdev_id); pe_session = pe_find_session_by_vdev_id(mac_ctx, vdev_id);
if (!pe_session) { if (!pe_session) {
@@ -2597,11 +2598,17 @@ lim_fill_roamed_peer_twt_caps(struct mac_context *mac_ctx,
status, len); status, len);
} }
if (lim_is_session_he_capable(pe_session)) if (lim_is_session_he_capable(pe_session)) {
if (is_multi_link_roam(roam_synch))
mlo_get_sta_link_mac_addr(vdev_id, roam_synch,
&mac_addr);
else
qdf_copy_macaddr(&mac_addr, &roam_synch->bssid);
lim_set_twt_peer_capabilities(mac_ctx, lim_set_twt_peer_capabilities(mac_ctx,
&roam_synch->bssid, &mac_addr,
&reassoc_rsp->he_cap, &reassoc_rsp->he_cap,
&reassoc_rsp->he_op); &reassoc_rsp->he_op);
}
qdf_mem_free(reassoc_rsp); qdf_mem_free(reassoc_rsp);
} }
#endif #endif

View File

@@ -1384,7 +1384,8 @@ lim_process_assoc_rsp_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_info,
&assoc_rsp->obss_scanparams); &assoc_rsp->obss_scanparams);
if (lim_is_session_he_capable(session_entry)) { if (lim_is_session_he_capable(session_entry)) {
lim_set_twt_peer_capabilities( if (!wlan_cm_is_vdev_roaming(session_entry->vdev))
lim_set_twt_peer_capabilities(
mac_ctx, mac_ctx,
(struct qdf_mac_addr *)current_bssid, (struct qdf_mac_addr *)current_bssid,
&assoc_rsp->he_cap, &assoc_rsp->he_cap,