Sfoglia il codice sorgente

qcacld-3.0: Don't reserve vdev for NAN in fw when NAN is disabled

When NAN is not supported on some target(disabled through ini
param gEnableNanSupport), there is no use of reserving vdev for
it in firmware though firmware advertises wmi_service_nan. Indicate
firmware that host is going to take care of the NAN vdev creation.
Host can use the vdev either for NAN or other operations
on need basis.

Change-Id: Iec106ceb80b80f03017a77036727b148845b64d5
CRs-Fixed: 3267080
Srinivas Dasari 2 anni fa
parent
commit
ff87b52ef4
1 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  1. 8 3
      core/wma/src/wma_main.c

+ 8 - 3
core/wma/src/wma_main.c

@@ -7216,12 +7216,17 @@ int wma_rx_service_ready_ext_event(void *handle, uint8_t *event,
 	 * If firmware is going to create NAN discovery vdev, host should
 	 * indicate 3 vdevs and firmware shall add 1 vdev for NAN. So decrement
 	 * the num_vdevs by 1.
+	 * If NAN is not supported on some target(disabled through ini
+	 * param gEnableNanSupport), there is no use of reserving one vdev for
+	 * it in firmware though firmware advertises wmi_service_nan. Indicate
+	 * firmware that host is going to take care of the NAN vdev. Host can
+	 * use the vdev either for NAN or other operations on need basis.
 	 */
 
-	if (wmi_service_enabled(wma_handle->wmi_handle, wmi_service_nan) &&
-	    cfg_nan_get_enable(wma_handle->psoc)) {
+	if (wmi_service_enabled(wma_handle->wmi_handle, wmi_service_nan)) {
 		if (ucfg_nan_is_vdev_creation_allowed(wma_handle->psoc) ||
-		    QDF_GLOBAL_FTM_MODE == cds_get_conparam()) {
+		    QDF_GLOBAL_FTM_MODE == cds_get_conparam() ||
+		    !cfg_nan_get_enable(wma_handle->psoc)) {
 			wlan_res_cfg->nan_separate_iface_support = true;
 		} else {
 			wlan_res_cfg->num_vdevs--;