diff --git a/utils/logging/inc/wlan_roam_debug.h b/utils/logging/inc/wlan_roam_debug.h index f38d67a64e..7a75e6a4df 100644 --- a/utils/logging/inc/wlan_roam_debug.h +++ b/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_ */ diff --git a/utils/logging/src/wlan_roam_debug.c b/utils/logging/src/wlan_roam_debug.c index 5032e25bb8..8358487099 100644 --- a/utils/logging/src/wlan_roam_debug.c +++ b/utils/logging/src/wlan_roam_debug.c @@ -29,6 +29,7 @@ #include #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 */