Browse Source

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
Aditya Kodukula 2 years ago
parent
commit
a1b9df7c4d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/hdd/src/wlan_hdd_stats.c

+ 5 - 0
core/hdd/src/wlan_hdd_stats.c

@@ -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);
 	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 */
 	if (priv->request_bitmap != WMI_LINK_STATS_RADIO &&
 	    results->paramId == WMI_LINK_STATS_RADIO) {