qcacmn: ignore WMI_REG_CHAN_LIST_CC_EVENTID

If reg offload is disabled, then ignore the processing of
WMI_REG_CHAN_LIST_CC_EVENTID in regulatory module.

Change-Id: I5da0cdf2c80357d03199fa367137cc236f4c3307
CRs-Fixed: 2625784
Dieser Commit ist enthalten in:
Paul Zhang
2020-02-27 20:43:19 +08:00
committet von nshrivas
Ursprung d364435727
Commit 09849da4ce

Datei anzeigen

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
@@ -44,6 +44,14 @@
QDF_STATUS tgt_reg_process_master_chan_list(struct cur_regulatory_info
*reg_info)
{
struct wlan_regulatory_psoc_priv_obj *soc_reg;
struct wlan_objmgr_psoc *psoc;
psoc = reg_info->psoc;
soc_reg = reg_get_psoc_obj(psoc);
if (!soc_reg->offload_enabled)
return QDF_STATUS_SUCCESS;
return reg_process_master_chan_list(reg_info);
}