Просмотр исходного кода

qcacmn: Featurize wlan roam debug

Featurize wlan roam debug log to compile out in mission mode.

Change-Id: Ic3dcdc6ab541093f16fcc8b9118120aa1f9b972f
CRs-Fixed: 2241297
Qiwei Cai 6 лет назад
Родитель
Сommit
1c8f4f7be2
2 измененных файлов с 19 добавлено и 1 удалено
  1. 17 0
      utils/logging/inc/wlan_roam_debug.h
  2. 2 1
      utils/logging/src/wlan_roam_debug.c

+ 17 - 0
utils/logging/inc/wlan_roam_debug.h

@@ -99,6 +99,8 @@ enum peer_debug_op {
 #define DEBUG_INVALID_PEER_ID 0xffff
 #define DEBUG_INVALID_VDEV_ID 0xff
 
+#ifdef FEATURE_ROAM_DEBUG
+
 /**
  * wlan_roam_debug_log() - Add a debug log entry to wlan roam debug records
  * @vdev_id: vdev identifier
@@ -122,4 +124,19 @@ void wlan_roam_debug_log(uint8_t vdev_id, uint8_t op,
  * Return: none
  */
 void wlan_roam_debug_dump_table(void);
+
+#else /* FEATURE_ROAM_DEBUG */
+
+static inline void
+wlan_roam_debug_log(uint8_t vdev_id, uint8_t op,
+		    uint16_t peer_id, void *mac_addr,
+		    void *peer_obj, uint32_t arg1, uint32_t arg2)
+{
+}
+
+static inline void wlan_roam_debug_dump_table(void)
+{
+}
+
+#endif /* FEATURE_ROAM_DEBUG */
 #endif /* _WLAN_ROAM_DEBUG_H_ */

+ 2 - 1
utils/logging/src/wlan_roam_debug.c

@@ -29,6 +29,7 @@
 #include <wlan_cmn.h>
 #include "wlan_roam_debug.h"
 
+#ifdef FEATURE_ROAM_DEBUG
 /*
  * wlan roam debug log is stored in this global structure. It can be accessed
  * without requiring any psoc or vdev context. It will be accessible in
@@ -206,5 +207,5 @@ void wlan_roam_debug_dump_table(void)
 }
 qdf_export_symbol(global_wlan_roam_debug_table);
 
-
+#endif /* FEATURE_ROAM_DEBUG */