qcacmn: Cleanup CONFIG_MCL for pktlog related code
Replace macro CONFIG_MCL with FEATURE_PKTLOG for pktlog related code. Add some macro changes to ensure the following 3 functions' declarations are enclosed by the right macros: wlan_deregister_txrx_packetdump wlan_register_txrx_packetdump wlan_pkt_stats_to_logger_thread Change-Id: I900de3be28faee8403923a5e4bd326e69895d998 CRs-Fixed: 2406250
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -60,7 +60,8 @@ static inline void wlan_logging_set_active(bool active) {}
|
||||
static inline void wlan_logging_set_log_to_console(bool log_to_console) {}
|
||||
#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
|
||||
|
||||
#if defined(WLAN_LOGGING_SOCK_SVC_ENABLE) && !defined(REMOVE_PKT_LOG)
|
||||
#if defined(WLAN_LOGGING_SOCK_SVC_ENABLE) && \
|
||||
defined(FEATURE_PKTLOG) && !defined(REMOVE_PKT_LOG)
|
||||
void wlan_deregister_txrx_packetdump(void);
|
||||
void wlan_register_txrx_packetdump(void);
|
||||
#else
|
||||
@@ -84,7 +85,8 @@ static inline void wlan_report_log_completion(uint32_t is_fatal,
|
||||
|
||||
#endif /* FEATURE_WLAN_DIAG_SUPPORT */
|
||||
|
||||
#if defined(CONFIG_MCL) && !defined(REMOVE_PKT_LOG)
|
||||
#if defined(WLAN_LOGGING_SOCK_SVC_ENABLE) && \
|
||||
defined(FEATURE_PKTLOG) && !defined(REMOVE_PKT_LOG)
|
||||
void wlan_pkt_stats_to_logger_thread(void *pl_hdr, void *pkt_dump, void *data);
|
||||
#else
|
||||
static inline
|
||||
|
Viittaa uudesa ongelmassa
Block a user