qcacmn: Fix get chain rssi stats
Fix chain rssi stats by correcting logic to extract chain
rssi stats.
Change-Id: Ifd8337abaef7f101082131e48f2ec87097317899
CRs-Fixed: 2253043
diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c
index 828ce59..62735b0 100644
--- a/wmi_unified_tlv.c
+++ b/wmi_unified_tlv.c
@@ -18303,7 +18303,7 @@
return QDF_STATUS_SUCCESS;
if (WMITLV_GET_STRUCT_TLVLEN(wmi_per_chain_rssi_stats) !=
- WMITLV_GET_TLVTAG(rssi_event->tlv_header))
+ WMITLV_GET_TLVLEN(rssi_event->tlv_header))
return QDF_STATUS_SUCCESS;
stats_param->num_rssi_stats = rssi_event->num_per_chain_rssi_stats;