qcacmn: Use arrays for param conversion from host to target type

Convert host param id to target param id using arrays
instead of switch case. This enables removal of CONFIG_MCL
compile time macro and use specific macro
ENABLE_HOST_TO_TARGET_CONVERSION for conversions

Change-Id: I223141d47e92521e6600fc0e160ab2deef43d7d2
CRs-Fixed: 2418030
This commit is contained in:
Surya Prakash
2019-04-29 10:13:44 +05:30
committed by nshrivas
parent 261451a46c
commit 4e517d7795
5 changed files with 509 additions and 695 deletions

View File

@@ -162,22 +162,20 @@ enum wmi_rx_exec_ctx {
/**
* struct wmi_unified_attach_params - wmi init parameters
* @param osdev : NIC device
* @param target_type : type of supported wmi command
* @param use_cookie : flag to indicate cookie based allocation
* @param enable_vdev_pdev_param_conversion : To enable pdev vdev parametric
* id conversion from host type to
* target type
* @param ops : handle to wmi ops
* @psoc : objmgr psoc
* @max_commands : max commands
* @osdev: NIC device
* @target_type: type of supported wmi command
* @use_cookie: flag to indicate cookie based allocation
* @is_async_ep: queueing interrupt or non-interrupt endpoint
* @rx_ops: handle to wmi ops
* @psoc: objmgr psoc
* @max_commands: max commands
* @soc_id: SoC device instance id
*/
struct wmi_unified_attach_params {
osdev_t osdev;
enum wmi_target_type target_type;
bool use_cookie;
bool is_async_ep;
bool enable_vdev_pdev_param_conversion;
struct wmi_rx_ops *rx_ops;
struct wlan_objmgr_psoc *psoc;
uint16_t max_commands;