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

qcacld-3.0: Fix CFG_RX_MODE_DEFAULT redefined error

SDX55 defined both MDM_PLATFORM and FEATURE_WLAN_DP_RX_THREADS,
and this is causing redefined issue.

Change-Id: I1427be477dd3832b98332c9edaa4063b8c573ae4
CRs-Fixed: 2542264
Lin Bai 5 жил өмнө
parent
commit
7c3d0c45db

+ 3 - 3
core/hdd/inc/hdd_dp_cfg.h

@@ -39,13 +39,13 @@
 #define CFG_RX_MODE_DEFAULT CFG_ENABLE_NAPI
 #endif
 
+#ifndef CFG_RX_MODE_DEFAULT
 #if defined(FEATURE_WLAN_DP_RX_THREADS)
 #define CFG_RX_MODE_DEFAULT (CFG_ENABLE_DP_RX_THREADS | CFG_ENABLE_NAPI)
-#endif
-
-#ifndef CFG_RX_MODE_DEFAULT
+#else
 #define CFG_RX_MODE_DEFAULT (CFG_ENABLE_RX_THREAD | CFG_ENABLE_NAPI)
 #endif
+#endif
 
 /* Max # of packets to be processed in 1 tx comp loop */
 #define CFG_DP_TX_COMP_LOOP_PKT_LIMIT_DEFAULT 64