summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-12-05 12:39:59 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-12-09 17:23:38 -0800
commitcb26b6919a9c58c587e458a84f61e696c9efac75 (patch)
treefe90cd16afa0e74409790413fa9cc00815c7c945
parent6f239ea104a050766a21e2095f167e9f9014c26c (diff)
qcacld-3.0: Replace hddLog() in wlan_hdd_tx_rx.c
Currently in wlan_hdd_tx_rx.c there are several calls to the legacy hddLog() logging API. There are several problems with this. 1) hddLog() is being deprecated. 2) hddLog() internally uses QDF_MODULE_ID_HDD and yet this file should only use QDF_MODULE_ID_HDD for the control plane and should use QDF_MODULE_ID_HDD_DATA for data plane. To fix these issue replace the hddLog() calls with direct calls to either QDF_TRACE(QDF_MODULE_ID_HDD_DATA, ...) or to the recently introduced unified logging APIs depending upon whether they are invoked from the control or data plane. Change-Id: Ib214cbba33504c26e5c9321bebc699b1468964a5 CRs-Fixed: 1097425
-rw-r--r--core/hdd/src/wlan_hdd_tx_rx.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c
index 87baf8dd453e..e2a7c35a92ee 100644
--- a/core/hdd/src/wlan_hdd_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_tx_rx.c
@@ -31,6 +31,9 @@
* Linux HDD Tx/RX APIs
*/
+/* denote that this file does not allow legacy hddLog */
+#define HDD_DISALLOW_LEGACY_HDDLOG 1
+
#include <wlan_hdd_tx_rx.h>
#include <wlan_hdd_softap_tx_rx.h>
#include <wlan_hdd_napi.h>
@@ -100,9 +103,9 @@ void hdd_tx_resume_timer_expired_handler(void *adapter_context)
return;
}
- hddLog(LOG1, FL("Enabling queues"));
+ hdd_notice("Enabling queues");
wlan_hdd_netif_queue_control(pAdapter, WLAN_WAKE_ALL_NETIF_QUEUE,
- WLAN_CONTROL_PATH);
+ WLAN_CONTROL_PATH);
return;
}
#if defined(CONFIG_PER_VDEV_TX_DESC_POOL)
@@ -194,14 +197,13 @@ void hdd_tx_resume_cb(void *adapter_context, bool tx_resume)
qdf_mc_timer_stop(&pAdapter->tx_flow_control_timer);
}
if (qdf_unlikely(hdd_sta_ctx->hdd_ReassocScenario)) {
- hddLog(LOGW,
- FL("flow control, tx queues un-pause avoided as we are in REASSOCIATING state"));
+ hdd_warn("flow control, tx queues un-pause avoided as we are in REASSOCIATING state");
return;
}
- hddLog(LOG1, FL("Enabling queues"));
+ hdd_notice("Enabling queues");
wlan_hdd_netif_queue_control(pAdapter,
- WLAN_WAKE_ALL_NETIF_QUEUE,
- WLAN_DATA_FLOW_CONTROL);
+ WLAN_WAKE_ALL_NETIF_QUEUE,
+ WLAN_DATA_FLOW_CONTROL);
}
hdd_tx_resume_false(pAdapter, tx_resume);
@@ -265,8 +267,8 @@ void hdd_get_tx_resource(hdd_adapter_t *adapter,
adapter->tx_flow_low_watermark,
adapter->tx_flow_high_watermark_offset)) {
hdd_info("Disabling queues lwm %d hwm offset %d",
- adapter->tx_flow_low_watermark,
- adapter->tx_flow_high_watermark_offset);
+ adapter->tx_flow_low_watermark,
+ adapter->tx_flow_high_watermark_offset);
wlan_hdd_netif_queue_control(adapter, WLAN_STOP_ALL_NETIF_QUEUE,
WLAN_DATA_FLOW_CONTROL);
if ((adapter->tx_flow_timer_initialized == true) &&
@@ -456,7 +458,8 @@ static int __hdd_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
hdd_get_transmit_sta_id(pAdapter, skb, &STAId);
if (STAId >= WLAN_MAX_STA_COUNT) {
- hddLog(LOGE, "Invalid station id, transmit operation suspended");
+ QDF_TRACE(QDF_MODULE_ID_HDD_DATA, LOGE,
+ "Invalid station id, transmit operation suspended");
goto drop_pkt;
}
@@ -777,8 +780,7 @@ QDF_STATUS hdd_init_tx_rx(hdd_adapter_t *pAdapter)
QDF_STATUS status = QDF_STATUS_SUCCESS;
if (NULL == pAdapter) {
- QDF_TRACE(QDF_MODULE_ID_HDD_DATA, QDF_TRACE_LEVEL_ERROR,
- FL("pAdapter is NULL"));
+ hdd_err("pAdapter is NULL");
QDF_ASSERT(0);
return QDF_STATUS_E_FAILURE;
}
@@ -798,8 +800,7 @@ QDF_STATUS hdd_deinit_tx_rx(hdd_adapter_t *pAdapter)
QDF_STATUS status = QDF_STATUS_SUCCESS;
if (NULL == pAdapter) {
- QDF_TRACE(QDF_MODULE_ID_HDD_DATA, QDF_TRACE_LEVEL_ERROR,
- FL("pAdapter is NULL"));
+ hdd_err("pAdapter is NULL");
QDF_ASSERT(0);
return QDF_STATUS_E_FAILURE;
}
@@ -1360,7 +1361,7 @@ int hdd_set_mon_rx_cb(struct net_device *dev)
/* peer is created wma_vdev_attach->wma_create_peer */
qdf_status = ol_txrx_register_peer(&sta_desc);
if (QDF_STATUS_SUCCESS != qdf_status) {
- hdd_err("WLANTL_RegisterSTAClient() failed to register. Status= %d [0x%08X]",
+ hdd_err("ol_txrx_register_peer() failed to register. Status= %d [0x%08X]",
qdf_status, qdf_status);
goto exit;
}