From 909a73c15b9aa33f63911768b7ee0e16650bf7d9 Mon Sep 17 00:00:00 2001 From: Qiwei Cai Date: Mon, 17 Sep 2018 19:17:13 +0800 Subject: [PATCH] qcacmn: Featurize WMI APIs and TLVs that are specific to MCL In the existing converged component, WMI TLV APIs are implemented in a generic manner without proper featurization. All the APIs exposed outside of WMI are implemented in wmi_unified_api.c and all the APIs forming the CMD or extracting the EVT is implemented in wmi_unified_tlv.c. Since WIN and MCL have a unified WMI layer in the converged component and there are features within WIN and MCL that are not common, there exists a good number of WMI APIs which are specific to WIN but compiled by MCL and vice-versa. Due to this inadvertent problem, there is a chunk of code and memory used up by WIN and MCL for features that are not used in their products. Featurize WMI APIs and TLVs that are specific to MCL - - DSRC - NAN - P2P - PMO - roaming - concurrency - STA - Generic MCL specific WMI (STA) Change-Id: I03a68b0db30a3aa585b269ab0a1745b37bc7e0b7 CRs-Fixed: 2316935 --- dispatcher/inc/wlan_p2p_public_struct.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dispatcher/inc/wlan_p2p_public_struct.h b/dispatcher/inc/wlan_p2p_public_struct.h index 4f156c633d7c..0c8eb282e47a 100644 --- a/dispatcher/inc/wlan_p2p_public_struct.h +++ b/dispatcher/inc/wlan_p2p_public_struct.h @@ -27,6 +27,28 @@ #define P2P_MAX_NOA_DESC 4 +/** + * struct p2p_ps_params - P2P powersave related params + * @opp_ps: opportunistic power save + * @ctwindow: CT window + * @count: count + * @duration: duration + * @interval: interval + * @single_noa_duration: single shot noa duration + * @ps_selection: power save selection + * @session_id: session id + */ +struct p2p_ps_params { + uint8_t opp_ps; + uint32_t ctwindow; + uint8_t count; + uint32_t duration; + uint32_t interval; + uint32_t single_noa_duration; + uint8_t ps_selection; + uint8_t session_id; +}; + /** * struct p2p_roc_req - P2P roc request * @vdev_id: Vdev id on which this request has come