From d2e7580d7ec911e97f345a6407e47c610db58738 Mon Sep 17 00:00:00 2001 From: Vikram Kandukuri Date: Thu, 1 Jun 2017 16:47:51 +0530 Subject: [PATCH] qcacmn: Update WMM params per VAP for lithium onwards Update WMM params per VAP for lithium onwards Change-Id: I025d8f314b255f4fa2da5c83916a122733b36c27 CRs-Fixed: 2064780 --- wmi_unified_api.h | 5 +---- wmi_unified_param.h | 21 +++++++++++++++++++++ wmi_unified_priv.h | 8 ++++---- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 2a66094e53..e1badf0452 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -571,12 +571,9 @@ QDF_STATUS wmi_unified_set_sta_keep_alive_cmd(void *wmi_hdl, QDF_STATUS wmi_unified_vdev_set_gtx_cfg_cmd(void *wmi_hdl, uint32_t if_id, struct wmi_gtx_config *gtx_info); -#ifdef CONFIG_MCL QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl, uint8_t vdev_id, - wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]); -#endif - + struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]); QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl, uint8_t vdev_id, diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 085e287842..f99c933856 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -4047,6 +4047,27 @@ struct wmm_update_params { struct wmi_host_wmeParams *wmep_array; }; +/** + * struct wmi_host_wmevParams - WME params + * @wmep_acm: ACM paramete + * @wmep_aifsn: AIFSN parameters + * @wmep_logcwmin: cwmin in exponential form + * @wmep_logcwmax: cwmax in exponential form + * @wmep_txopLimit: txopLimit + * @wmep_noackPolicy: No-Ack Policy: 0=ack, 1=no-ack + */ +struct wmi_host_wme_vparams { + u_int32_t acm; + u_int32_t aifs; + u_int32_t cwmin; + u_int32_t cwmax; + union { + u_int32_t txoplimit; + u_int32_t mu_edca_timer; + }; + u_int32_t noackpolicy; +}; + /** * struct ant_switch_tbl_params - Antenna switch table params * @ant_ctrl_common1: ANtenna control common param 1 diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 20894ffe0b..255ddbca3b 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -576,10 +576,6 @@ QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle, wmi_ap_ps_egap_param_cmd_fixed_param *egap_params); -QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle, - uint8_t vdev_id, - wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]); - QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle, wmi_bcn_send_from_host_cmd_fixed_param * param); @@ -793,6 +789,10 @@ QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle, struct wmm_update_params *param); +QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle, + uint8_t vdev_id, + struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]); + QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle, struct ant_switch_tbl_params *param);