diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 870c210806..78e6b99ab6 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1135,6 +1135,16 @@ QDF_STATUS wmi_unified_vdev_config_ratemask_cmd_send(void *wmi_hdl, QDF_STATUS wmi_unified_vdev_set_custom_aggr_size_cmd_send(void *wmi_hdl, struct set_custom_aggr_size_params *param); +/** + * wmi_unified_vdev_set_qdepth_thresh_cmd_send() - WMI set qdepth threshold + * @param wmi_hdl : handle to WMI. + * @param param : pointer to hold set qdepth thresh param + * + * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure + */ +QDF_STATUS wmi_unified_vdev_set_qdepth_thresh_cmd_send(void *wmi_hdl, + struct set_qdepth_thresh_params *param); + QDF_STATUS wmi_unified_pdev_set_regdomain_cmd_send(void *wmi_hdl, struct pdev_set_regdomain_params *param); diff --git a/wmi_unified_param.h b/wmi_unified_param.h index dbfd03d037..ad48a91ee4 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -3887,6 +3887,39 @@ enum wmi_host_custom_aggr_type_t { WMI_HOST_CUSTOM_AGGR_TYPE_MAX, }; +/* + * msduq_update_params - MSDUQ update param structure + * @tid_num: TID number + * @msduq_update_mask: update bit mask + * @qdepth_thresh_value: threshold value for the queue depth + */ + +#define QDEPTH_THRESH_MAX_UPDATES 1 + +typedef struct { + uint32_t tid_num; + uint32_t msduq_update_mask; + uint32_t qdepth_thresh_value; +} msduq_update_params; + +/** + * struct set_qdepth_thresh_params - MSDU Queue Depth Threshold Params + * @vdev_id: vdev id + * @pdev_id: pdev id + * @mac_addr: MAC address + * @num_of_msduq_updates: holds the number of tid updates + */ + +struct set_qdepth_thresh_params { + uint32_t pdev_id; + uint32_t vdev_id; + uint8_t mac_addr[IEEE80211_ADDR_LEN]; + uint32_t num_of_msduq_updates; + msduq_update_params update_params[QDEPTH_THRESH_MAX_UPDATES]; +}; + + + /** * struct config_ratemask_params - ratemask config parameters * @vdev_id: vdev id diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index e989919493..3c89a56a51 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -922,6 +922,9 @@ QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_vdev_set_custom_aggr_size_cmd)(wmi_unified_t wmi_handle, struct set_custom_aggr_size_params *param); +QDF_STATUS (*send_vdev_set_qdepth_thresh_cmd)(wmi_unified_t wmi_handle, + struct set_qdepth_thresh_params *param); + QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle); QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle,