Browse Source

qcacmn: Fix compiling issue of qdf_platform

qdf_platform.h/qdf_platform.c is only used by MCL

Change-Id: I8172f3dbe0716be24a4dda739afb49f94528a4f6
CRs-Fixed: 2310882
Jianmin Zhu 6 years ago
parent
commit
ff034e9797
1 changed files with 4 additions and 0 deletions
  1. 4 0
      target_if/regulatory/src/target_if_reg.c

+ 4 - 0
target_if/regulatory/src/target_if_reg.c

@@ -30,7 +30,9 @@
 #include <target_if_reg.h>
 #include <wmi_unified_reg_api.h>
 #include <wlan_reg_ucfg_api.h>
+#ifdef CONFIG_MCL
 #include <qdf_platform.h>
+#endif
 
 static inline uint32_t get_chan_list_cc_event_id(void)
 {
@@ -103,10 +105,12 @@ static int tgt_reg_chan_list_update_handler(ol_scn_t handle,
 
 	TARGET_IF_ENTER();
 
+#ifdef CONFIG_MCL
 	if (qdf_is_fw_down()) {
 		target_if_debug("ignore chan list update evt in ssr");
 		return 0;
 	}
+#endif
 
 	psoc = target_if_get_psoc_from_scn_hdl(handle);
 	if (!psoc) {