Forráskód Böngészése

qcacld-3.0: Send default rate_stats for standby link

Currently in case of 3-link MLO connection, if the standby link
was never active, then driver is not sending any rate_stats to wifihal
as part of MLO Link Layer Peer stats. But wifihal is expecting
rate_stats for every connected peer and since driver is not sending
them for the standby link, LL_Stats response handler is failing.

To avoid this issue, send default rate_stats for the standby link
as part of MLO Link Layer Peer stats.

CRs-Fixed: 3630522
Change-Id: Iba09642b2e00f86c634364bc10cebf3fa7080f74
Aditya Kodukula 1 éve
szülő
commit
29279d7a3b
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      core/hdd/src/wlan_hdd_stats.c

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

@@ -1484,7 +1484,11 @@ wlan_hdd_copy_mlo_peer_stats(struct hdd_adapter *adapter,
 		qdf_mem_copy(&link_info->mlo_peer_info.peer_mac,
 			     &sta_ctx->conn_info.bssid, QDF_MAC_ADDR_SIZE);
 		link_info->mlo_peer_info.type = peer_info->type;
-		hdd_debug("For peer " QDF_MAC_ADDR_FMT "filling default values",
+		link_info->mlo_peer_info.num_rate = HDD_MAX_PER_PEER_RATES;
+		for (j = 0; j < HDD_MAX_PER_PEER_RATES; j++)
+			qdf_mem_zero(&link_info->mlo_peer_info.rate_stats[j],
+				     sizeof(struct wifi_rate_stat));
+		hdd_debug("Default values for standby link " QDF_MAC_ADDR_FMT,
 			  QDF_MAC_ADDR_REF(sta_ctx->conn_info.bssid.bytes));
 	}