فهرست منبع

qcacld-3.0: Conditional compile scan registration

Move scan registration API under NAPIER_SCAN conditional
compilation flag.

Change-Id: I177fd66f72fc8d9e27613dbb0ee479709d11b5da
CRs-Fixed: 2013212
Sandeep Puligilla 8 سال پیش
والد
کامیت
91273c2799
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      core/sap/src/sap_module.c

+ 4 - 1
core/sap/src/sap_module.c

@@ -378,10 +378,11 @@ QDF_STATUS wlansap_start(void *pCtx, enum tQDF_ADAPTER_MODE mode,
 			__func__, qdf_ret_status);
 		return QDF_STATUS_E_FAILURE;
 	}
-
+#ifdef NAPIER_SCAN
 	/* Register with scan component */
 	pSapCtx->req_id = ucfg_scan_register_requester(pmac->psoc, "SAP",
 					sap_scan_event_callback, pSapCtx);
+#endif
 	return QDF_STATUS_SUCCESS;
 }
 
@@ -422,7 +423,9 @@ QDF_STATUS wlansap_stop(void *pCtx)
 			  __func__);
 		return QDF_STATUS_E_FAULT;
 	}
+#ifdef NAPIER_SCAN
 	ucfg_scan_unregister_requester(pmac->psoc, pSapCtx->req_id);
+#endif
 	sap_free_roam_profile(&pSapCtx->csr_roamProfile);
 
 	if (!QDF_IS_STATUS_SUCCESS(qdf_mutex_destroy(&pSapCtx->SapGlobalLock))) {