summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Girigowda <sgirigow@codeaurora.org>2017-03-26 22:21:20 -0700
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-31 16:00:57 -0700
commitc9869c503d4ec6dabd178bda5ea51d637c11a821 (patch)
tree200f612721ce919aae27627330e2442c9dc392eb
parent569edbd57e79005c5b1ead60b4149d7e3255fbda (diff)
qcacld-3.0: Remove obsolete file lim_debug.c
Remove lim_log() and obsolete file lim_debug.c. Change-Id: I6b39737890d186adb6f0cdcb4a116863e328b07e CRs-Fixed: 1093093
-rw-r--r--core/mac/src/pe/include/lim_api.h2
-rw-r--r--core/mac/src/pe/lim/lim_api.c20
-rw-r--r--core/mac/src/pe/lim/lim_debug.c49
3 files changed, 3 insertions, 68 deletions
diff --git a/core/mac/src/pe/include/lim_api.h b/core/mac/src/pe/include/lim_api.h
index 396334d63fc6..d733a87c4e71 100644
--- a/core/mac/src/pe/include/lim_api.h
+++ b/core/mac/src/pe/include/lim_api.h
@@ -329,7 +329,5 @@ QDF_STATUS lim_update_ext_cap_ie(tpAniSirGlobal mac_ctx,
uint8_t *ie_data, uint8_t *local_ie_buf, uint16_t *local_ie_len);
QDF_STATUS lim_add_qcn_ie(tpAniSirGlobal mac_ctx, uint8_t *ie_data,
uint16_t *ie_len);
-void lim_log(tpAniSirGlobal pMac, uint32_t loglevel,
- const char *pString, ...);
/************************************************************/
#endif /* __LIM_API_H */
diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c
index 2ebf46df8c1c..7cb1163bee67 100644
--- a/core/mac/src/pe/lim/lim_api.c
+++ b/core/mac/src/pe/lim/lim_api.c
@@ -991,8 +991,7 @@ static QDF_STATUS pe_drop_pending_rx_mgmt_frames(tpAniSirGlobal mac_ctx,
if (mac_ctx->sys.sys_bbt_pending_mgmt_count >=
MGMT_RX_PACKETS_THRESHOLD) {
qdf_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
- lim_log(mac_ctx, LOGE,
- FL("No.of pending RX management frames reaches to threshold, dropping management frames"));
+ pe_err("No.of pending RX management frames reaches to threshold, dropping management frames");
cds_pkt_return_packet(cds_pkt);
cds_pkt = NULL;
return QDF_STATUS_E_FAILURE;
@@ -1003,8 +1002,7 @@ static QDF_STATUS pe_drop_pending_rx_mgmt_frames(tpAniSirGlobal mac_ctx,
hdr->fc.subType == SIR_MAC_MGMT_PROBE_REQ ||
hdr->fc.subType == SIR_MAC_MGMT_PROBE_RSP) {
qdf_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
- lim_log(mac_ctx, LOGE,
- FL("No.of pending RX management frames reaches to half of threshold, dropping probe req, probe resp or beacon frames"));
+ pe_err("No.of pending RX management frames reaches to half of threshold, dropping probe req, probe resp or beacon frames");
cds_pkt_return_packet(cds_pkt);
cds_pkt = NULL;
return QDF_STATUS_E_FAILURE;
@@ -1014,8 +1012,7 @@ static QDF_STATUS pe_drop_pending_rx_mgmt_frames(tpAniSirGlobal mac_ctx,
qdf_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
if (mac_ctx->sys.sys_bbt_pending_mgmt_count ==
(MGMT_RX_PACKETS_THRESHOLD / 4))
- lim_log(mac_ctx, LOGW,
- FL("No.of pending RX management frames reaches to 1/4th of threshold"));
+ pe_warn("No.of pending RX management frames reaches to 1/4th of threshold");
return QDF_STATUS_SUCCESS;
}
@@ -2387,14 +2384,3 @@ QDF_STATUS lim_add_qcn_ie(tpAniSirGlobal mac_ctx, uint8_t *ie_data,
return QDF_STATUS_SUCCESS;
}
-void lim_log(tpAniSirGlobal pMac, uint32_t loglevel, const char *pString, ...)
-{
-#ifdef WLAN_DEBUG
- va_list marker;
-
- va_start(marker, pString);
- log_debug(pMac, SIR_LIM_MODULE_ID, loglevel, pString, marker);
- va_end(marker);
-#endif
-}
-
diff --git a/core/mac/src/pe/lim/lim_debug.c b/core/mac/src/pe/lim/lim_debug.c
deleted file mode 100644
index 665267c4c76f..000000000000
--- a/core/mac/src/pe/lim/lim_debug.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2014, 2017 The Linux Foundation. All rights reserved.
- *
- * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
- *
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * This file was originally distributed by Qualcomm Atheros, Inc.
- * under proprietary terms before Copyright ownership was assigned
- * to the Linux Foundation.
- */
-
-/**=========================================================================
-
- \file lim_debug.c
-
- \brief implementation for log Debug related APIs
-
- \author Sunit Bhatia
-
- ========================================================================*/
-
-#include "lim_debug.h"
-
-void lim_log(tpAniSirGlobal pMac, uint32_t loglevel, const char *pString, ...)
-{
-#ifdef WLAN_DEBUG
- va_list marker;
-
- va_start(marker, pString);
- log_debug(pMac, SIR_LIM_MODULE_ID, loglevel, pString, marker);
- va_end(marker);
-#endif
-}