From 142a2c8fd8e7b8907a222554ee22873d7acef868 Mon Sep 17 00:00:00 2001 From: Sreelakshmi Konamki Date: Wed, 13 Jul 2016 12:28:44 +0530 Subject: [PATCH] qcacld-3.0: Print correct no.of channels qcacld-2.0 to qcacld-3.0 propagation In __wlan_hdd_cfg80211_scan(), no.of channels printed as received no.of channels from supplicant instead of filtered no.of non DSRC channels. Fix to update the correct no.of channels Change-Id: I5f424a043535b0fdcc7886ba062b34fbc2e6dca0 CRs-Fixed: 1036775 --- core/hdd/src/wlan_hdd_scan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index 38da16492b67..b053817ca89a 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -1432,8 +1432,6 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy, request->n_channels = MAX_CHANNEL; } - hdd_notice("No of Scan Channels: %d", request->n_channels); - if (request->n_channels) { char chList[(request->n_channels * 5) + 1]; int len; @@ -1452,6 +1450,7 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy, num_chan++; } hdd_notice("Channel-List: %s", chList); + hdd_notice("No. of Scan Channels: %d", num_chan); } if (!num_chan) { hdd_err("Received zero non-dsrc channels");