qcacmn: Ignore regulatory offload indication from FW
Based on the ini "ignore_fw_reg_offload_ind" ignore regulatory offload indicatin from fw. Change-Id: Ia95b5bdda6ee1fcc2b07f28f997a7c80afcbc32b CRs-Fixed: 2533001
Este commit está contenido en:

cometido por
nshrivas

padre
f3f9797014
commit
816b503c44
@@ -52,10 +52,19 @@ static inline uint32_t get_chan_list_cc_event_id(void)
|
||||
static bool tgt_if_regulatory_is_regdb_offloaded(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
wmi_unified_t wmi_handle = get_wmi_unified_hdl_from_psoc(psoc);
|
||||
struct wlan_lmac_if_reg_rx_ops *reg_rx_ops;
|
||||
|
||||
reg_rx_ops = target_if_regulatory_get_rx_ops(psoc);
|
||||
|
||||
if (!wmi_handle)
|
||||
return false;
|
||||
|
||||
if (reg_rx_ops->reg_ignore_fw_reg_offload_ind &&
|
||||
reg_rx_ops->reg_ignore_fw_reg_offload_ind(psoc)) {
|
||||
target_if_debug("User disabled regulatory offload from ini");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return wmi_service_enabled(wmi_handle, wmi_service_regulatory_db);
|
||||
}
|
||||
|
||||
|
@@ -28,10 +28,19 @@
|
||||
bool tgt_if_regulatory_is_11d_offloaded(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
wmi_unified_t wmi_handle = get_wmi_unified_hdl_from_psoc(psoc);
|
||||
struct wlan_lmac_if_reg_rx_ops *reg_rx_ops;
|
||||
|
||||
reg_rx_ops = target_if_regulatory_get_rx_ops(psoc);
|
||||
|
||||
if (!wmi_handle)
|
||||
return false;
|
||||
|
||||
if (reg_rx_ops->reg_ignore_fw_reg_offload_ind &&
|
||||
reg_rx_ops->reg_ignore_fw_reg_offload_ind(psoc)) {
|
||||
target_if_debug("Ignore fw reg 11d offload indication");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return wmi_service_enabled(wmi_handle, wmi_service_11d_offload);
|
||||
}
|
||||
|
||||
|
Referencia en una nueva incidencia
Block a user