qcacmn: Add pdev_id in extract APIs for few pdev events
Add pdev_id extraction code for FIPS, TPC and channel hopping WMI
events. pdev_id is used to derive pdev object.
Change-Id: I1ed527cd96cb6f2326202d1a37ab43285f050a72
CRs-Fixed: 2003898
diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c
index 8ab273b..d475b74 100644
--- a/wmi_unified_tlv.c
+++ b/wmi_unified_tlv.c
@@ -15763,6 +15763,7 @@
param->data = (uint32_t *)param_buf->data;
param->data_len = event->data_len;
param->error_status = event->error_status;
+ param->pdev_id = event->pdev_id;
return QDF_STATUS_SUCCESS;
}
@@ -15938,6 +15939,7 @@
ch_hopping->noise_floor_report_iter = event->noise_floor_report_iter;
ch_hopping->noise_floor_total_iter = event->noise_floor_total_iter;
+ ch_hopping->pdev_id = event->pdev_id;
return QDF_STATUS_SUCCESS;
}
@@ -15960,6 +15962,7 @@
param_buf = (WMI_PDEV_TPC_EVENTID_param_tlvs *)evt_buf;
event = (wmi_pdev_tpc_event_fixed_param *)param_buf->fixed_param;
+ param->pdev_id = event->pdev_id;
qdf_mem_copy(param->tpc, param_buf->tpc, sizeof(param->tpc));
return QDF_STATUS_SUCCESS;