qcacmn: Featurize BUILD_DIAG_VERSION

Featurize BUILD_DIAG_VERSION to compile out to save memory.

Change-Id: I4d221387003770e5344069dc4cf1f72b7ce9e0ad
CRs-Fixed: 2301492
This commit is contained in:
Qiwei Cai 2018-08-23 11:04:07 +08:00 • committed by nshrivas
commit 5d4acd79ad
2 changed files with 10 additions and 7 deletions

View file

@ -212,16 +212,14 @@ static inline void qdf_wow_wakeup_host_event(uint8_t wow_wakeup_cause)
return;
}
static inline void host_log_acs_req_event(uint8_t *intf, uint8_t *hw_mode,
static inline void host_log_acs_req_event(uint8_t *intf, const uint8_t *hw_mode,
uint16_t bw, uint8_t ht, uint8_t vht,
uint16_t chan_start,
uint16_t chan_end)
{
}
static inline void host_log_acs_scan_start(uint8_t *scan_type,
uint8_t *bss_type, uint32_t scan_id,
uint8_t vdev_id)
static inline void host_log_acs_scan_start(uint32_t scan_id, uint8_t vdev_id)
{
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2018 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
@ -19,9 +19,7 @@
#if !defined(__I_HOST_DIAG_CORE_LOG_H)
#define __I_HOST_DIAG_CORE_LOG_H
#ifdef FEATURE_WLAN_DIAG_SUPPORT
#include <log_codes.h>
#endif
/**=========================================================================
@ -108,6 +106,13 @@ void host_diag_log_submit(void *plog_hdr_ptr);
#define WLAN_HOST_DIAG_LOG_REPORT(payload_ptr)
#define WLAN_HOST_DIAG_LOG_FREE(payload_ptr)
static inline void host_diag_log_set_code(void *ptr, uint16_t code)
{
}
static inline void host_diag_log_set_length(void *ptr, uint16_t length)
{
}
#endif /* FEATURE_WLAN_DIAG_SUPPORT */
/*-------------------------------------------------------------------------