From 0ba573b7ae470d183bd18c111218042e33267e00 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Wed, 15 Mar 2017 17:51:43 +0800 Subject: [PATCH] qcacmn: WMI changes for TDLS component Update TDLS related wmi change Change-Id: I3fe2745ff7fa910a8ffb6fa95256d8a10a7237a3 CRs-Fixed: 2011330 --- wmi_unified_api.h | 13 +++++++++++++ wmi_unified_param.h | 24 +++++++++++++++++++++++- wmi_unified_priv.h | 5 +++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index cc031cc9c9..db5f913c32 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1206,6 +1206,19 @@ QDF_STATUS wmi_extract_vdev_roam_param(void *wmi_hdl, void *evt_buf, QDF_STATUS wmi_extract_vdev_scan_ev_param(void *wmi_hdl, void *evt_buf, struct scan_event *param); +#ifdef CONVERGED_TDLS_ENABLE +/** + * wmi_extract_vdev_tdls_ev_param - extract vdev tdls param from event + * @wmi_handle: wmi handle + * @param evt_buf: pointer to event buffer + * @param param: Pointer to hold vdev tdls param + * + * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure + */ +QDF_STATUS wmi_extract_vdev_tdls_ev_param(void *wmi_hdl, void *evt_buf, + struct tdls_event_info *param); +#endif + QDF_STATUS wmi_extract_mu_ev_param(void *wmi_hdl, void *evt_buf, wmi_host_mu_report_event *param); diff --git a/wmi_unified_param.h b/wmi_unified_param.h index afdc19f64c..5b2c938a4a 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -34,6 +34,9 @@ #define _WMI_UNIFIED_PARAM_H_ #include +#ifdef CONVERGED_TDLS_ENABLE +#include +#endif #define MAC_MAX_KEY_LENGTH 32 #define MAC_PN_LENGTH 8 @@ -1352,6 +1355,22 @@ struct p2p_ps_params { uint8_t session_id; }; +#ifndef CONVERGED_TDLS_ENABLE +/** + * struct sta_uapsd_params - uapsd auto trig params + * @wmm_ac: WMM access category from 0 to 3 + * @user_priority: User priority to use in trigger frames + * @service_interval: service interval + * @suspend_interval: suspend interval + * @delay_interval: delay interval + */ +struct sta_uapsd_params { + uint32_t wmm_ac; + uint32_t user_priority; + uint32_t service_interval; + uint32_t suspend_interval; + uint32_t delay_interval; +}; /** * struct ta_uapsd_trig_params - uapsd trigger parameter @@ -1363,9 +1382,10 @@ struct p2p_ps_params { struct sta_uapsd_trig_params { uint32_t vdevid; uint8_t peer_addr[IEEE80211_ADDR_LEN]; - uint8_t *auto_triggerparam; + struct sta_uapsd_params *auto_triggerparam; uint32_t num_ac; }; +#endif /** * struct ocb_utc_param @@ -2795,6 +2815,7 @@ struct wmi_tdls_params { uint32_t tdls_peer_kickout_threshold; }; +#ifndef CONVERGED_TDLS_ENABLE /** * struct tdls_chan_switch_params - channel switch parameter structure * @vdev_id: vdev ID @@ -2813,6 +2834,7 @@ struct tdls_channel_switch_params { uint8_t oper_class; uint8_t is_responder; }; +#endif /** * struct dhcp_offload_info_params - dhcp offload parameters diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 91180345ce..312826614b 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1060,6 +1060,11 @@ QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf, QDF_STATUS (*extract_vdev_scan_ev_param)(wmi_unified_t wmi_handle, void *evt_buf, struct scan_event *param); +#ifdef CONVERGED_TDLS_ENABLE +QDF_STATUS (*extract_vdev_tdls_ev_param)(wmi_unified_t wmi_handle, + void *evt_buf, struct tdls_event_info *param); +#endif + QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf, wmi_host_mu_report_event *param);