qcacmn: Add API to extract rate2power update response WMI event

Add API extract_tgtr2p_table_event_tlv to extract TLVs from the response
event of rate2power table update cmd. Add a wrapper function
wmi_extract_tgtr2p_table_event and call extract_tgtr2p_table_event_tlv
from it.

Add the host event id wmi_pdev_set_tgtr2p_table_eventid corresponding to
the target id WMI_PDEV_SET_TGTR2P_TABLE_EVENTID. Also add this mapping
to populate_tlv_events_id function.

Change-Id: I0a870125120f1f92ee50002953e114b27d597ae6
CRs-Fixed: 3405417
This commit is contained in:
Amith A
2023-02-06 18:12:03 +05:30
committed by Madan Koyyalamudi
parent 0d3ef18cdf
commit 6ddd0be86d
5 changed files with 75 additions and 1 deletions

View File

@@ -135,4 +135,19 @@ QDF_STATUS wmi_extract_reg_ch_avoid_event(
struct ch_avoid_ind_type *ch_avoid_ind,
uint32_t len);
/**
* wmi_extract_tgtr2p_table_event() - function to read the contents of the
* rate2power update response event
* @wmi_handle: wmi handle
* @evt_buf: event buffer
* @update_status: Status object
* @len: length of buffer
*
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_FAILURE on error
*/
QDF_STATUS wmi_extract_tgtr2p_table_event(wmi_unified_t wmi_handle,
uint8_t *evt_buf,
struct r2p_table_update_status_obj *update_status,
uint32_t len);
#endif /* _WMI_UNIFIED_REG_API_H_ */