diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index a3989b890157..bd83dc544e17 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -828,6 +828,7 @@ typedef struct sAniGetTsmStatsRsp { * Per STA stats request must * contain valid */ + struct qdf_mac_addr bssid; /* bssid to get the tsm stats for */ tAniTrafStrmMetrics tsmMetrics; void *tsmStatsReq; /* tsm stats request backup */ } tAniGetTsmStatsRsp, *tpAniGetTsmStatsRsp; diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c index 1c6f44e1a2f0..3ceaecc1449c 100644 --- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c @@ -1638,9 +1638,8 @@ void lim_send_sme_pe_ese_tsm_rsp(struct mac_context *mac, struct pe_session *pPeSessionEntry = NULL; /* Get the Session Id based on Sta Id */ - pPeSessionEntry = - pe_find_session_by_sta_id(mac, pPeStats->staId, &sessionId); - + pPeSessionEntry = pe_find_session_by_bssid(mac, pPeStats->bssid.bytes, + &sessionId); /* Fill the Session Id */ if (NULL != pPeSessionEntry) { /* Fill the Session Id */ diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 2373e039af45..99b6a6a8c119 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -3171,6 +3171,7 @@ QDF_STATUS wma_process_tsm_stats_req(tp_wma_handle wma_handler, return QDF_STATUS_E_NOMEM; } pTsmRspParams->staId = pStats->staId; + qdf_copy_macaddr(&pTsmRspParams->bssid, &pStats->bssId); pTsmRspParams->rc = QDF_STATUS_E_FAILURE; pTsmRspParams->tsmStatsReq = pStats; pTsmMetric = &pTsmRspParams->tsmMetrics;