소스 검색

qcacmn: Add check to skip REO shared qref stats for legacy platforms

Reo shared qref stats is not required for legacy platforms
and is enabled for wkk only. Hence add check in stats to
skip for legacy platform.

Change-Id: Ic6f1ebd965aa63b98a3ac6a5216fa9b4e3499b74
CRs-Fixed: 3186595
sumedh baikady 3 년 전
부모
커밋
fe2748debc
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      dp/wifi3.0/dp_stats.c

+ 12 - 0
dp/wifi3.0/dp_stats.c

@@ -6153,7 +6153,19 @@ static void dp_peer_print_reo_qref_table(struct dp_peer *peer)
 	uint32_t peer_idx;
 
 	hal = (struct hal_soc *)peer->vdev->pdev->soc->hal_soc;
+
+	if (!hal_reo_shared_qaddr_is_enable((hal_soc_handle_t)hal))
+		return;
+
 	peer_idx = (peer->peer_id * DP_MAX_TIDS);
+
+	if ((!hal->reo_qref.non_mlo_reo_qref_table_vaddr) ||
+	    (!hal->reo_qref.mlo_reo_qref_table_vaddr)) {
+		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
+			  FL("REO shared table not allocated"));
+		return;
+	}
+
 	reo_qref_addr = &hal->reo_qref.non_mlo_reo_qref_table_vaddr[peer_idx];
 	mld_peer = DP_GET_MLD_PEER_FROM_PEER(peer);
 	if (mld_peer) {