From 76a4a79953fe7a6d0bd6d2f886a04cf291e8fc58 Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Wed, 14 Sep 2022 18:04:46 +0530 Subject: [PATCH] qcacmn: Reduce log level from error to debug in wlan_vdev_get_bss_peer_mac Bss peer can be NULL in case of vdev in disconnected state, so change the log level from error to debug in wlan_vdev_get_bss_peer_mac() to reduce logging in dmesg. Change-Id: Idac08200253d83f267be3381691e10d6bd4b52bf CRs-Fixed: 3293402 --- umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c b/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c index 0b36790db167..d35c7a9452c5 100644 --- a/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c +++ b/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2016-2020 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 above @@ -1415,7 +1416,7 @@ QDF_STATUS wlan_vdev_get_bss_peer_mac(struct wlan_objmgr_vdev *vdev, peer = wlan_objmgr_vdev_try_get_bsspeer(vdev, WLAN_MLME_OBJMGR_ID); if (!peer) { - obj_mgr_err("not able to find bss peer for vdev %d", + obj_mgr_debug("not able to find bss peer for vdev %d", wlan_vdev_get_id(vdev)); return QDF_STATUS_E_INVAL; }