Эх сурвалжийг харах

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
Paul Zhang 5 жил өмнө
parent
commit
09849da4ce

+ 9 - 1
umac/regulatory/dispatcher/src/wlan_reg_tgt_api.c

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