From 71b1f90eb380a50d2fc6d39cc925189dbf5ccd7c Mon Sep 17 00:00:00 2001 From: Priyadarshnee Srinivasan Date: Mon, 17 Oct 2022 16:39:00 +0530 Subject: [PATCH] qcacmn: Reduce the debug level of scan err print When the beacon frame is received by the DUT, util_scan_get_phymode_5g gets invoked. In a highly noisy environment, malformed/incorrect beacon frames is received and the content of vhtop->vht_op_chwidth becomes invalid. Hence bad channel print floods the console since it is under scm_err debug level (the default debug level of SCAN module is ERROR). Reduce the debug level of the print to scm_debug since it hits for every in-correct beacon. Change-Id: I92d99f8d69ac7f892f155f2043c60a4c0c2efa12 CRs-Fixed: 3313827 --- umac/scan/dispatcher/src/wlan_scan_utils_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c index 4719a550ad..b439aed068 100644 --- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -739,8 +739,8 @@ util_scan_get_phymode_5g(struct wlan_objmgr_pdev *pdev, phymode = WLAN_PHYMODE_11AC_VHT80_80; break; default: - scm_err("bad channel: %d", - vhtop->vht_op_chwidth); + scm_debug("bad channel: %d", + vhtop->vht_op_chwidth); phymode = WLAN_PHYMODE_11AC_VHT20; break; }