From 557d1042fa8a8c30d03a807cf83d729613e9e96d Mon Sep 17 00:00:00 2001 From: Aravind Kishore Sukla Date: Fri, 13 May 2022 15:25:38 +0530 Subject: [PATCH] qcacld-3.0: Replace kmsg logs to debug logs Change kernel log level to debug level Change-Id: I1efa9a0498acd81f2a9a12d5712299609eb5bd06 CRs-Fixed: 3182121 --- .../pmo/core/src/wlan_pmo_suspend_resume.c | 9 ++-- core/hdd/src/wlan_hdd_ioctl.c | 6 +-- core/hdd/src/wlan_hdd_stats.c | 42 +++++++++---------- core/hdd/src/wlan_hdd_twt.c | 5 ++- core/sap/src/sap_fsm.c | 3 +- core/wma/src/wma_dev_if.c | 15 +++---- 6 files changed, 43 insertions(+), 37 deletions(-) diff --git a/components/pmo/core/src/wlan_pmo_suspend_resume.c b/components/pmo/core/src/wlan_pmo_suspend_resume.c index 1ca4c4b77d96..3a3c144a70ab 100644 --- a/components/pmo/core/src/wlan_pmo_suspend_resume.c +++ b/components/pmo/core/src/wlan_pmo_suspend_resume.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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 @@ -800,7 +801,7 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc, pmo_info("drv wow is enabled"); param.flags |= WMI_WOW_FLAG_ENABLE_DRV_PCIE_L1SS_SLEEP; } else { - pmo_info("non-drv wow is enabled"); + pmo_debug("non-drv wow is enabled"); } } else { pmo_info("Prevent link down, non-drv wow is enabled"); @@ -812,16 +813,16 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc, pmo_info("system suspend wow"); param.flags |= WMI_WOW_FLAG_SYSTEM_SUSPEND_WOW; } else { - pmo_info("RTPM wow"); + pmo_debug("RTPM wow"); } if (psoc_cfg->is_mod_dtim_on_sys_suspend_enabled) { - pmo_info("mod DTIM enabled"); + pmo_debug("mod DTIM enabled"); param.flags |= WMI_WOW_FLAG_MOD_DTIM_ON_SYS_SUSPEND; } if (psoc_cfg->sta_forced_dtim) { - pmo_info("forced DTIM enabled"); + pmo_debug("forced DTIM enabled"); param.flags |= WMI_WOW_FLAG_FORCED_DTIM_ON_SYS_SUSPEND; } status = pmo_tgt_psoc_send_wow_enable_req(psoc, ¶m); diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c index 4abc434093c1..1030046ff134 100644 --- a/core/hdd/src/wlan_hdd_ioctl.c +++ b/core/hdd/src/wlan_hdd_ioctl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. 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 @@ -6336,8 +6336,8 @@ static int drv_cmd_invalid(struct hdd_adapter *adapter, TRACE_CODE_HDD_UNSUPPORTED_IOCTL, adapter->vdev_id, 0); - hdd_warn("%s: Unsupported driver command \"%s\"", - adapter->dev->name, command); + hdd_debug("%s: Unsupported driver command \"%s\"", + adapter->dev->name, command); return -ENOTSUPP; } diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index af9e061c50c0..8f7deb17dcda 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -4632,11 +4632,11 @@ static void hdd_fill_sinfo_rate_info(struct station_info *sinfo, } } - hdd_info("flag %x mcs %d legacy %d nss %d", - rate_info->flags, - rate_info->mcs, - rate_info->legacy, - rate_info->nss); + hdd_debug("flag %x mcs %d legacy %d nss %d", + rate_info->flags, + rate_info->mcs, + rate_info->legacy, + rate_info->nss); if (is_tx) sinfo->filled |= HDD_INFO_TX_BITRATE; @@ -4731,7 +4731,7 @@ static void hdd_fill_rate_info(struct wlan_objmgr_psoc *psoc, &link_speed_rssi_low, &link_speed_rssi_report); - hdd_info("reportMaxLinkSpeed %d", link_speed_rssi_report); + hdd_debug("reportMaxLinkSpeed %d", link_speed_rssi_report); /* convert to 100kbps expected in rate table */ tx_rate = stats->tx_rate.rate / 100; @@ -4922,20 +4922,20 @@ static void wlan_hdd_fill_station_info(struct wlan_objmgr_psoc *psoc, sinfo->assoc_req_ies_len = stainfo->assoc_req_ies.len; /* dump sta info*/ - hdd_info("dump stainfo"); - hdd_info("con_time %d inact_time %d tx_pkts %d rx_pkts %d", - sinfo->connected_time, sinfo->inactive_time, - sinfo->tx_packets, sinfo->rx_packets); - hdd_info("failed %d retries %d tx_bytes %lld rx_bytes %lld", - sinfo->tx_failed, sinfo->tx_retries, - sinfo->tx_bytes, sinfo->rx_bytes); - hdd_info("rssi %d tx mcs %d legacy %d nss %d flags %x", - sinfo->signal, sinfo->txrate.mcs, - sinfo->txrate.legacy, sinfo->txrate.nss, - sinfo->txrate.flags); - hdd_info("rx mcs %d legacy %d nss %d flags %x", - sinfo->rxrate.mcs, sinfo->rxrate.legacy, - sinfo->rxrate.nss, sinfo->rxrate.flags); + hdd_debug("dump stainfo"); + hdd_debug("con_time %d inact_time %d tx_pkts %d rx_pkts %d", + sinfo->connected_time, sinfo->inactive_time, + sinfo->tx_packets, sinfo->rx_packets); + hdd_debug("failed %d retries %d tx_bytes %lld rx_bytes %lld", + sinfo->tx_failed, sinfo->tx_retries, + sinfo->tx_bytes, sinfo->rx_bytes); + hdd_debug("rssi %d tx mcs %d legacy %d nss %d flags %x", + sinfo->signal, sinfo->txrate.mcs, + sinfo->txrate.legacy, sinfo->txrate.nss, + sinfo->txrate.flags); + hdd_debug("rx mcs %d legacy %d nss %d flags %x", + sinfo->rxrate.mcs, sinfo->rxrate.legacy, + sinfo->rxrate.nss, sinfo->rxrate.flags); } /** @@ -5045,7 +5045,7 @@ static uint8_t hdd_get_rate_flags(uint32_t rate, else if (mode == SIR_SME_PHY_MODE_VHT) flags = hdd_get_rate_flags_vht(rate, nss, mcs); else - hdd_err("invalid mode param %d", mode); + hdd_debug("invalid mode param %d", mode); return flags; } diff --git a/core/hdd/src/wlan_hdd_twt.c b/core/hdd/src/wlan_hdd_twt.c index e5d2b83e8365..05977120b16e 100644 --- a/core/hdd/src/wlan_hdd_twt.c +++ b/core/hdd/src/wlan_hdd_twt.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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 @@ -4446,6 +4447,8 @@ void __hdd_twt_update_work_handler(struct hdd_context *hdd_ctx) hdd_debug("Total connection %d, sta_count %d, sap_count %d", num_connections, sta_count, sap_count); switch (num_connections) { + case 0: + break; case 1: if (sta_count == 1) { hdd_send_twt_requestor_enable_cmd(hdd_ctx); @@ -4489,7 +4492,7 @@ void __hdd_twt_update_work_handler(struct hdd_context *hdd_ctx) WLAN_HDD_ID_OBJ_MGR); break; default: - hdd_err("Unexpected number of connection"); + hdd_debug("Unexpected number of connection"); break; } } diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 85596813b7a8..681e70398140 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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 @@ -1503,7 +1504,7 @@ QDF_STATUS sap_signal_hdd_event(struct sap_context *sap_ctx, bss_complete->status = (eSapStatus) context; bss_complete->staId = sap_ctx->sap_sta_id; - sap_info("(eSAP_START_BSS_EVENT): staId = %d", + sap_debug("(eSAP_START_BSS_EVENT): staId = %d", bss_complete->staId); bss_complete->operating_chan_freq = sap_ctx->chan_freq; diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index f2c339e03e2a..52a6a28a8795 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -330,7 +330,8 @@ static struct wma_target_req *wma_find_remove_req_msgtype(tp_wma_handle wma, if (QDF_STATUS_SUCCESS != qdf_list_peek_front(&wma->wma_hold_req_queue, &node2)) { qdf_spin_unlock_bh(&wma->wma_hold_req_q_lock); - wma_err("unable to get msg node from request queue"); + wma_debug("unable to get msg node from request queue for vdev_id %d type %d", + vdev_id, msg_type); return NULL; } @@ -347,7 +348,7 @@ static struct wma_target_req *wma_find_remove_req_msgtype(tp_wma_handle wma, if (QDF_STATUS_SUCCESS != status) { qdf_spin_unlock_bh(&wma->wma_hold_req_q_lock); wma_debug("Failed to remove request. vdev_id %d type %d", - vdev_id, msg_type); + vdev_id, msg_type); return NULL; } break; @@ -357,13 +358,13 @@ static struct wma_target_req *wma_find_remove_req_msgtype(tp_wma_handle wma, qdf_spin_unlock_bh(&wma->wma_hold_req_q_lock); if (!found) { - wma_err("target request not found for vdev_id %d type %d", - vdev_id, msg_type); + wma_debug("target request not found for vdev_id %d type %d", + vdev_id, msg_type); return NULL; } wma_debug("target request found for vdev id: %d type %d", - vdev_id, msg_type); + vdev_id, msg_type); return req_msg; } @@ -4786,7 +4787,7 @@ void wma_add_sta(tp_wma_handle wma, tpAddStaParams add_sta) htc_vote_link_up(htc_handle); wmi_info("sap d0 wow"); } else { - wmi_info("sap d3 wow"); + wmi_debug("sap d3 wow"); } wma_sap_prevent_runtime_pm(wma); @@ -4879,7 +4880,7 @@ void wma_delete_sta(tp_wma_handle wma, tpDeleteStaParams del_sta) htc_vote_link_down(htc_handle); wmi_info("sap d0 wow"); } else { - wmi_info("sap d3 wow"); + wmi_debug("sap d3 wow"); } wma_sap_allow_runtime_pm(wma);