Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eec62c31 authored by Ashish Kumar Dhanotiya's avatar Ashish Kumar Dhanotiya Committed by Madan Koyyalamudi
Browse files

qcacmn: Add logs to print if nan is enabled or not for a freq

With this change add log with scan channels list dump to print
if NAN is enabled or not for any frequency.

Change-Id: I81f5017c7f146d2c7bd227601ae320d9cc67f82f
CRs-Fixed: 3042903
parent 40395a8b
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3194,13 +3194,15 @@ static void wmi_scan_chanlist_dump(struct scan_chan_list_params *scan_chan_list)
	for (i = 0; i < scan_chan_list->nallchans; i++) {
		chan = &scan_chan_list->ch_param[i];
		ret = qdf_scnprintf(info + len, sizeof(info) - len,
				    " %d[%d][%d]", chan->mhz, chan->maxregpower,
				    chan->dfs_set);
				    " %d[%d][%d][%d]", chan->mhz,
				    chan->maxregpower,
				    chan->dfs_set, chan->nan_disabled);
		if (ret <= 0)
			break;
		len += ret;
		if (len >= (sizeof(info) - 20)) {
			wmi_nofl_debug("Chan[TXPwr][DFS]:%s", info);
			wmi_nofl_debug("Chan[TXPwr][DFS][nan_disabled]:%s",
				       info);
			len = 0;
		}
	}