From b2aa7520e0a3fa04979b4fa531595bea9eba3c06 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Tue, 14 Sep 2021 09:49:43 +0530 Subject: [PATCH] qcacmn: Add debug log in case BSS is filtered out due to freq list Add debug log in case BSS freq is not matching the freq list provided in scan filter. Change-Id: I00da614f4a5b4fdf58122cf2750afe5c03114536 CRs-Fixed: 3035787 --- umac/scan/core/src/wlan_scan_filter.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/umac/scan/core/src/wlan_scan_filter.c b/umac/scan/core/src/wlan_scan_filter.c index 8adbceb4b632..73836d7bade6 100644 --- a/umac/scan/core/src/wlan_scan_filter.c +++ b/umac/scan/core/src/wlan_scan_filter.c @@ -716,8 +716,18 @@ bool scm_filter_match(struct wlan_objmgr_psoc *psoc, } } - if (!match && filter->num_of_channels) + if (!match && filter->num_of_channels) { + /* + * Do not print if bssid/ssid is not present in filter to avoid + * excessive prints (e.g RRM case where only freq list is + * provided to get AP's in specific frequencies) + */ + if (filter->num_of_bssid || filter->num_of_ssid) + scm_debug(QDF_MAC_ADDR_FMT" : Ignore as AP's freq %d is not in freq list", + QDF_MAC_ADDR_REF(db_entry->bssid.bytes), + db_entry->channel.chan_freq); return false; + } if (filter->rrm_measurement_filter) return true;