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

Commit 6bf2c473 authored by Srinivas Dasari's avatar Srinivas Dasari
Browse files

qcacmn: Inform fw if NAN is disabled on an SRD channel

Firmware expects the channel property WMI_CHAN_FLAG_NAN_DISABLED
to be set if NAN is not allowed on any channel. Firmware shall
check the flag and decides whether to enable NAN/NDP on that
channel.

Change-Id: I8e283d2cd0f83a43e04dad142b09d519ef7f0db3
CRs-Fixed: 2760348
parent e2075e10
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -620,6 +620,7 @@ typedef enum {
 * @set_agile: is agile mode
 * @allow_he: HE allowed on chan
 * @psc_channel: 6 ghz preferred scan chan
 * @nan_disabled: is NAN disabled on @mhz
 * @phy_mode: phymode (vht80 or ht40 or ...)
 * @cfreq1: centre frequency on primary
 * @cfreq2: centre frequency on secondary
@@ -644,7 +645,8 @@ struct channel_param {
		allow_vht:1,
		set_agile:1,
		allow_he:1,
		psc_channel:1;
		psc_channel:1,
		nan_disabled:1;
	uint32_t phy_mode;
	uint32_t cfreq1;
	uint32_t cfreq2;
+4 −0
Original line number Diff line number Diff line
@@ -3305,6 +3305,10 @@ static QDF_STATUS send_scan_chan_list_cmd_tlv(wmi_unified_t wmi_handle,
				WMI_SET_CHANNEL_FLAG(chan_info,
						     WMI_CHAN_FLAG_PSC);

			if (tchan_info->nan_disabled)
				WMI_SET_CHANNEL_FLAG(chan_info,
					     WMI_CHAN_FLAG_NAN_DISABLED);

			/* also fill in power information */
			WMI_SET_CHANNEL_MIN_POWER(chan_info,
						  tchan_info->minpower);