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
This commit is contained in:
Srinivas Dasari 2021-03-05 12:21:32 +05:30 • committed by Gerrit - the friendly Code Review server
commit 59239622a0

View file

@ -7033,13 +7033,12 @@ 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)) {
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_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) !=