summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreelakshmi Konamki <skonam@codeaurora.org>2016-07-13 12:28:44 +0530
committerVishwajith Upendra <vishwaji@codeaurora.org>2016-08-17 11:21:47 -0700
commit142a2c8fd8e7b8907a222554ee22873d7acef868 (patch)
tree6857c13c0a4ce0358be9d85876aad63869542dbc
parent752f5b133809ebf8c5e7c94ef4f3db759cb954de (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_scan.c3
1 files changed, 1 insertions, 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");