qcacld-3.0: Add check to update request bitmap for MLO Stats

Add a guard check to update ll stats request bitmap in case
of MLO connection only.

Change-Id: Ie910e9afe6280d607c0a81b722a790c325e227dd
CRs-Fixed: 3200229
This commit is contained in:
Aditya Kodukula
2022-05-18 15:44:50 -07:00
committed by Madan Koyyalamudi
parent fb11191a29
commit a1b9df7c4d

View File

@@ -1643,6 +1643,11 @@ wlan_hdd_update_ll_stats_request_bitmap(struct hdd_context *hdd_ctx,
struct hdd_ll_stats_priv *priv = osif_request_priv(request); struct hdd_ll_stats_priv *priv = osif_request_priv(request);
bool is_mlo_link; bool is_mlo_link;
if (!wlan_vdev_mlme_get_is_mlo_vdev(hdd_ctx->psoc, priv->vdev_id)) {
hdd_nofl_debug("Can't update req_bitmap for non MLO case");
return;
}
/* The radio stats event is expected at the last, for MLO ll_stats */ /* The radio stats event is expected at the last, for MLO ll_stats */
if (priv->request_bitmap != WMI_LINK_STATS_RADIO && if (priv->request_bitmap != WMI_LINK_STATS_RADIO &&
results->paramId == WMI_LINK_STATS_RADIO) { results->paramId == WMI_LINK_STATS_RADIO) {