ソースを参照

qcacld-3.0: Enable log to cnss_diag for non-perf sdx

sdx/mdm:
  no-perf: Enable log to cnss_diag by default, have rich debug log.
           Avoid system crash when turn on much log in printk
           QXDM can be used too
  perf:    Disable log to cnss_diag by default for better performance

change-Id: I3b8011b327c78625abe56e9b51167d6ca2e3757f
CRs-Fixed: 2101171
Zhu Jianmin 7 年 前
コミット
35fcd0dbe7
2 ファイル変更12 行追加0 行削除
  1. 7 0
      Kbuild
  2. 5 0
      core/hdd/inc/wlan_hdd_cfg.h

+ 7 - 0
Kbuild

@@ -2008,6 +2008,9 @@ CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
 #Enable 4address scheme
 CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
 
+#enable MDM/SDX special config
+CDEFINES += -DMDM_PLATFORM
+
 #Disable STA-AP Mode DFS support
 CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
 
@@ -2213,6 +2216,10 @@ ifeq ($(CONFIG_WLAN_DEBUGFS), y)
 CDEFINES += -DWLAN_DEBUGFS
 endif
 
+ifeq ($(CONFIG_DYNAMIC_DEBUG),y)
+CDEFINES += -DFEATURE_MULTICAST_HOST_FW_MSGS
+endif
+
 KBUILD_CPPFLAGS += $(CDEFINES)
 
 # Currently, for versions of gcc which support it, the kernel Makefile

+ 5 - 0
core/hdd/inc/wlan_hdd_cfg.h

@@ -8196,7 +8196,12 @@ enum hdd_link_speed_rpt_type {
 #define CFG_MULTICAST_HOST_FW_MSGS          "gMulticastHostFwMsgs"
 #define CFG_MULTICAST_HOST_FW_MSGS_MIN      (0)
 #define CFG_MULTICAST_HOST_FW_MSGS_MAX      (1)
+#if defined(MDM_PLATFORM) && !defined(FEATURE_MULTICAST_HOST_FW_MSGS)
+#define CFG_MULTICAST_HOST_FW_MSGS_DEFAULT  (0)
+#else
 #define CFG_MULTICAST_HOST_FW_MSGS_DEFAULT  (1)
+#endif
+
 
 /*
  * <ini>