From 0f0a36c8d4f07f80d00e10b9ef127c5dea9dbf9f Mon Sep 17 00:00:00 2001 From: Amruta Kulkarni Date: Fri, 3 Jan 2020 15:09:57 -0800 Subject: [PATCH] qcacmn: Change info/err prints to debug in roaming path The printk buffer is protected by a global raw spinlock for readers and writers. This restricts the contexts that are allowed to access the buffer. So large latencies exists when printing to kmsg done with QDF trace levels WARN, INFO, ERROR. This results in roaming KPI for maximum transition time exceeding the expected 100ms. So change info/err prints to debug prints in roaming path to reduce delays in roaming time. Change-Id: I9cdf043da6e88d735ab39812e74ed24784ceede3 CRs-Fixed: 2594867 --- dp/wifi3.0/dp_peer.c | 6 +++--- umac/cmn_services/crypto/src/wlan_crypto_global_api.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dp/wifi3.0/dp_peer.c b/dp/wifi3.0/dp_peer.c index f055aa90f5ac..a4eb54a313d2 100644 --- a/dp/wifi3.0/dp_peer.c +++ b/dp/wifi3.0/dp_peer.c @@ -3238,7 +3238,7 @@ QDF_STATUS dp_peer_state_update(struct cdp_pdev *pdev_handle, uint8_t *peer_mac, } peer->state = state; - DP_TRACE(INFO, "peer %pK state %d", peer, peer->state); + dp_info("peer %pK state %d", peer, peer->state); /* ref_cnt is incremented inside dp_peer_find_hash_find(). * Decrement it here. */ @@ -3323,7 +3323,7 @@ uint8_t *dp_peer_get_peer_mac_addr(void *peer_handle) uint8_t *mac; mac = peer->mac_addr.raw; - DP_TRACE(INFO, "peer %pK mac 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x", + dp_info("peer %pK mac 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x", peer, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); return peer->mac_addr.raw; } @@ -3398,7 +3398,7 @@ void dp_local_peer_id_alloc(struct dp_pdev *pdev, struct dp_peer *peer) pdev->local_peer_ids.map[i] = peer; } qdf_spin_unlock_bh(&pdev->local_peer_ids.lock); - DP_TRACE(INFO, "peer %pK, local id %d", peer, peer->local_id); + dp_info("peer %pK, local id %d", peer, peer->local_id); } /** diff --git a/umac/cmn_services/crypto/src/wlan_crypto_global_api.c b/umac/cmn_services/crypto/src/wlan_crypto_global_api.c index 22793fd0ce4b..ce97b1c9dab7 100644 --- a/umac/cmn_services/crypto/src/wlan_crypto_global_api.c +++ b/umac/cmn_services/crypto/src/wlan_crypto_global_api.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2020 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 @@ -3193,7 +3193,7 @@ QDF_STATUS wlan_crypto_set_peer_wep_keys(struct wlan_objmgr_vdev *vdev, if (opmode == QDF_STA_MODE) { peer = wlan_objmgr_vdev_try_get_bsspeer(vdev, WLAN_CRYPTO_ID); if (!peer) { - crypto_err("peer NULL"); + crypto_debug("peer NULL"); return QDF_STATUS_E_INVAL; } }