Browse Source

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
Priyadarshnee Srinivasan 2 years ago
parent
commit
71b1f90eb3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      umac/scan/dispatcher/src/wlan_scan_utils_api.c

+ 2 - 2
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;
 		}