diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 43931867eb..5c8505d9ca 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1096,6 +1096,16 @@ QDF_STATUS wmi_unified_vdev_set_fwtest_param_cmd_send(void *wmi_hdl, QDF_STATUS wmi_unified_vdev_config_ratemask_cmd_send(void *wmi_hdl, struct config_ratemask_params *param); +/** + * wmi_unified_vdev_set_custom_aggr_size_cmd_send() - WMI set custom aggr + * size command + * @param wmi_hdl : handle to WMI. + * @param param : pointer to hold custom aggr size param + * + * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure + */ +QDF_STATUS wmi_unified_vdev_set_custom_aggr_size_cmd_send(void *wmi_hdl, + struct set_custom_aggr_size_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 98bdc6a498..2bc6145ce0 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -3747,6 +3747,37 @@ struct set_fwtest_params { uint32_t value; }; +/** + * struct set_custom_aggr_size_params - custom aggr size params + * @vdev_id : vdev id + * @tx_aggr_size : TX aggr size + * @rx_aggr_size : RX aggr size + * @enable_bitmap: Bitmap for aggr size check + */ +struct set_custom_aggr_size_params { + uint32_t vdev_id; + uint32_t tx_aggr_size; + uint32_t rx_aggr_size; + uint32_t ac:2, + aggr_type:1, + tx_aggr_size_disable:1, + rx_aggr_size_disable:1, + tx_ac_enable:1, + reserved:26; +}; + +/** + * enum wmi_host_custom_aggr_type_t: custon aggregate type + * @WMI_HOST_CUSTOM_AGGR_TYPE_AMPDU: A-MPDU aggregation + * @WMI_HOST_CUSTOM_AGGR_TYPE_AMSDU: A-MSDU aggregation + * @WMI_HOST_CUSTOM_AGGR_TYPE_MAX: Max type + */ +enum wmi_host_custom_aggr_type_t { + WMI_HOST_CUSTOM_AGGR_TYPE_AMPDU = 0, + WMI_HOST_CUSTOM_AGGR_TYPE_AMSDU = 1, + WMI_HOST_CUSTOM_AGGR_TYPE_MAX, +}; + /** * struct config_ratemask_params - ratemask config parameters * @vdev_id: vdev id @@ -5668,6 +5699,7 @@ typedef enum { wmi_vdev_param_set_heop, wmi_vdev_param_disable_cabq, + wmi_vdev_param_rate_dropdown_bmap, wmi_vdev_param_max, } wmi_conv_vdev_param_id; diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 201e1cef02..a1caad3785 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -895,6 +895,8 @@ QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle, struct config_ratemask_params *param); +QDF_STATUS (*send_vdev_set_custom_aggr_size_cmd)(wmi_unified_t wmi_handle, + struct set_custom_aggr_size_params *param); QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle);