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

Commit 761b5111 authored by Srinivas Dasari's avatar Srinivas Dasari
Browse files

qcacld-3.0: set nan_separate_iface_support flag in FTM mode

Set nan_separate_iface_support flag in FTM mode to avoid
create NAN vdev in FTM mode. This helps in FTM mode test cases
where max supported vdevs are used.

Change-Id: Ia628655a87505db787043ef29dd18d259052b521
CRs-Fixed: 2888703
parent 8ab049b2
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -7033,14 +7033,13 @@ int wma_rx_service_ready_ext_event(void *handle, uint8_t *event,
	 * the num_vdevs by 1.
	 */

	if (QDF_GLOBAL_FTM_MODE != cds_get_conparam()) {
		if (ucfg_nan_is_vdev_creation_allowed(wma_handle->psoc)) {
	if (ucfg_nan_is_vdev_creation_allowed(wma_handle->psoc) ||
	    QDF_GLOBAL_FTM_MODE == cds_get_conparam()) {
		wlan_res_cfg->nan_separate_iface_support = true;
	} else {
		wlan_res_cfg->num_vdevs--;
		wma_update_num_peers_tids(wma_handle, wlan_res_cfg);
	}
	}

	if ((ucfg_pkt_capture_get_mode(wma_handle->psoc) !=
						PACKET_CAPTURE_MODE_DISABLE) &&