qcacmn: Define set params for no host to target conversion
Currently if ENABLE_HOST_TO_TARGET_CONVERSION is defined, host pdev/vdev set params can be translated to target pdev/vdev set params through APIs convert_host_pdev_param_tlv,convert_host_vdev_param_tlv. If ENABLE_HOST_TO_TARGET_CONVERSION is not defined, host pdev/vdev set params in common code is sent to firmware directly, which is incorrect. Define pdev/vdev set params in such away they represents host params on ENABLE_HOST_TO_TARGET_CONVERSION enabled and target params on ENABLE_HOST_TO_TARGET_CONVERSION disabled. Change-Id: I5718c76c351b2d7904d8bf8b603073ffcb0a039d CRs-Fixed: 3321556
This commit is contained in:
parent
c1bece57dd
commit
7a737732fe
@ -126,7 +126,6 @@ int target_if_cfr_start_capture(struct wlan_objmgr_pdev *pdev,
|
||||
return retv;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_HOST_TO_TARGET_CONVERSION
|
||||
int target_if_cfr_periodic_peer_cfr_enable(struct wlan_objmgr_pdev *pdev,
|
||||
uint32_t param_value)
|
||||
{
|
||||
@ -150,31 +149,6 @@ int target_if_cfr_periodic_peer_cfr_enable(struct wlan_objmgr_pdev *pdev,
|
||||
return wmi_unified_pdev_param_send(pdev_wmi_handle,
|
||||
&pparam, pdev_id);
|
||||
}
|
||||
#else
|
||||
int target_if_cfr_periodic_peer_cfr_enable(struct wlan_objmgr_pdev *pdev,
|
||||
uint32_t param_value)
|
||||
{
|
||||
struct pdev_params pparam;
|
||||
uint32_t pdev_id;
|
||||
struct wmi_unified *pdev_wmi_handle = NULL;
|
||||
|
||||
pdev_id = wlan_objmgr_pdev_get_pdev_id(pdev);
|
||||
if (pdev_id < 0)
|
||||
return -EINVAL;
|
||||
|
||||
pdev_wmi_handle = lmac_get_pdev_wmi_handle(pdev);
|
||||
if (!pdev_wmi_handle) {
|
||||
cfr_err("pdev wmi handle NULL");
|
||||
return -EINVAL;
|
||||
}
|
||||
qdf_mem_set(&pparam, sizeof(pparam), 0);
|
||||
pparam.param_id = WMI_PDEV_PARAM_PER_PEER_PERIODIC_CFR_ENABLE;
|
||||
pparam.param_value = param_value;
|
||||
|
||||
return wmi_unified_pdev_param_send(pdev_wmi_handle,
|
||||
&pparam, pdev_id);
|
||||
}
|
||||
#endif
|
||||
|
||||
int target_if_cfr_enable_cfr_timer(struct wlan_objmgr_pdev *pdev,
|
||||
uint32_t cfr_timer)
|
||||
|
@ -163,7 +163,7 @@ spatial_reuse_send_pd_threshold(struct wlan_objmgr_pdev *pdev,
|
||||
if (sr_supported) {
|
||||
qdf_mem_zero(&vdev_param, sizeof(vdev_param));
|
||||
vdev_param.vdev_id = vdev_id;
|
||||
vdev_param.param_id = WMI_VDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD;
|
||||
vdev_param.param_id = wmi_vdev_param_set_cmd_obss_pd_threshold;
|
||||
vdev_param.param_value = val;
|
||||
return wmi_unified_vdev_set_param_send(wmi_handle, &vdev_param);
|
||||
} else {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -59,7 +60,6 @@ QDF_STATUS wmi_extract_dcs_awgn_info(wmi_unified_t wmi_hdl, void *evt_buf,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_HOST_TO_TARGET_CONVERSION
|
||||
QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
|
||||
uint32_t pdev_idx,
|
||||
bool is_host_pdev_id,
|
||||
@ -74,19 +74,3 @@ QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
|
||||
|
||||
return wmi_unified_pdev_param_send(wmi_handle, &pparam, pdev_idx);
|
||||
}
|
||||
#else
|
||||
QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
|
||||
uint32_t pdev_idx,
|
||||
bool is_host_pdev_id,
|
||||
uint32_t dcs_enable)
|
||||
{
|
||||
struct pdev_params pparam;
|
||||
|
||||
qdf_mem_zero(&pparam, sizeof(pparam));
|
||||
pparam.is_host_pdev_id = is_host_pdev_id;
|
||||
pparam.param_id = WMI_PDEV_PARAM_DCS;
|
||||
pparam.param_value = dcs_enable;
|
||||
|
||||
return wmi_unified_pdev_param_send(wmi_handle, &pparam, pdev_idx);
|
||||
}
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user