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
This commit is contained in:
Sreelakshmi Konamki 2016-07-13 12:28:44 +05:30 • committed by Vishwajith Upendra
commit 142a2c8fd8

View file

@ -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");