Browse Source

qcacld-3.0: Include "wlan_tgt_def_config_hl.h" under CONFIG_HL_SUPPORT

In hdd_config.h file, wlan_tgt_def_config_hl.h is included without checking
for the flag CONFIG_HL_SUPPORT which could lead to compilation issues if
CONFIG_HL_SUPPORT is not defined for a PL.

Include wlan_tgt_def_config_hl.h under the correct CONFIG_HL_SUPPORT
flag.

Change-Id: Ia01b79e47b9ea504a93c96575599068218ef8671
CRs-Fixed: 2357292
Vignesh Viswanathan 6 years ago
parent
commit
5a3c8bebec
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/hdd/inc/hdd_config.h

+ 4 - 0
core/hdd/inc/hdd_config.h

@@ -23,7 +23,11 @@
 #ifndef __HDD_CONFIG_H
 #define __HDD_CONFIG_H
 
+#if defined(CONFIG_HL_SUPPORT)
 #include "wlan_tgt_def_config_hl.h"
+#else
+#include "wlan_tgt_def_config.h"
+#endif
 
 /**
  * enum hdd_wext_control - knob for wireless extensions