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:
Rajeev Kumar Sirasanagandla
2019-08-05 21:35:14 +05:30
cometido por nshrivas
padre f3f9797014
commit 816b503c44
Se han modificado 11 ficheros con 96 adiciones y 0 borrados

Ver fichero

@@ -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);
}

Ver fichero

@@ -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);
}