qcacmn: Send CTL info to firmware
In regulatory non-offloads feature, send conformance_test_limit_2G, conformance_test_limit_5G, reg_domain, reg_domain_2G and reg_domain_5G information to firmware using WMI_PDEV_SET_REGDOMAIN_CMDID. If all these attributes are not populated then CTL power limit is not applied by the firmware. Change-Id: I1523ab447aec64ec0af42da32318136f90fd17ca CRs-Fixed: 2518246
Esse commit está contido em:

commit de
nshrivas

pai
e8b8de05c0
commit
89029e4d9e
@@ -345,6 +345,39 @@ QDF_STATUS tgt_if_regulatory_modify_freq_range(struct wlan_objmgr_psoc *psoc)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_REG_CLIENT
|
||||
/**
|
||||
* tgt_if_regulatory_send_ctl_info() - Send CTL info to firmware
|
||||
* @psoc: Pointer to psoc
|
||||
* @params: Pointer to reg control params
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
static QDF_STATUS
|
||||
tgt_if_regulatory_send_ctl_info(struct wlan_objmgr_psoc *psoc,
|
||||
struct reg_ctl_params *params)
|
||||
{
|
||||
wmi_unified_t wmi_handle = get_wmi_unified_hdl_from_psoc(psoc);
|
||||
|
||||
if (!wmi_handle)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return wmi_unified_send_regdomain_info_to_fw_cmd(wmi_handle,
|
||||
params->regd,
|
||||
params->regd_2g,
|
||||
params->regd_5g,
|
||||
params->ctl_2g,
|
||||
params->ctl_5g);
|
||||
}
|
||||
#else
|
||||
static QDF_STATUS
|
||||
tgt_if_regulatory_send_ctl_info(struct wlan_objmgr_psoc *psoc,
|
||||
struct reg_ctl_params *params)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
QDF_STATUS target_if_register_regulatory_tx_ops(
|
||||
struct wlan_lmac_if_tx_ops *tx_ops)
|
||||
{
|
||||
@@ -384,5 +417,7 @@ QDF_STATUS target_if_register_regulatory_tx_ops(
|
||||
reg_ops->unregister_ch_avoid_event_handler =
|
||||
tgt_if_regulatory_unregister_ch_avoid_event_handler;
|
||||
|
||||
reg_ops->send_ctl_info = tgt_if_regulatory_send_ctl_info;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
Referência em uma nova issue
Block a user