qcacmn: Add length check for twt additional parameters
Add length check in additional parameters extracted from WMI_TWT_ADD_DIALOG_COMPLETE_EVENTID. CRs-Fixed: 2755498 Change-Id: I913547bad8a1f823a01ff36f22dbe3d305e533bc
This commit is contained in:

committed by
snandini

parent
8841346dcb
commit
afac78b33d
@@ -164,15 +164,16 @@ QDF_STATUS wmi_extract_twt_add_dialog_comp_event(
|
||||
* twt parameters, as part of add dialog completion event
|
||||
* @wmi_hdl: wmi handle
|
||||
* @evt_buf: Pointer event buffer
|
||||
* @additional_params: additional parameters to extract
|
||||
* @evt_buf_len: length of the add dialog event buffer
|
||||
* @idx: index of num_twt_params to extract
|
||||
* @additional_params: additional parameters to extract
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_extract_twt_add_dialog_comp_additional_params(
|
||||
wmi_unified_t wmi_handle, uint8_t *evt_buf,
|
||||
struct wmi_twt_add_dialog_additional_params *additional_params,
|
||||
uint32_t idx);
|
||||
uint32_t evt_buf_len, uint32_t idx,
|
||||
struct wmi_twt_add_dialog_additional_params *additional_params);
|
||||
|
||||
/**
|
||||
* wmi_extract_twt_del_dialog_comp_event() - Extract WMI event params for TWT
|
||||
|
Reference in New Issue
Block a user