Ver código fonte

qcacld-3.0: Remove wlansap_open() p_cds_gctx parameter

Currently wlansap_open() takes a p_cds_gctx parameter. At one time
this was needed, but that is no longer the case, so remove this unused
parameter.

Change-Id: Ie110b3cee9898233fb921aaab223caa4cf93de4e
CRs-Fixed: 2109961
Jeff Johnson 7 anos atrás
pai
commit
49c7a1465a

+ 1 - 2
core/hdd/src/wlan_hdd_hostapd.c

@@ -6475,7 +6475,6 @@ QDF_STATUS hdd_init_ap_mode(struct hdd_adapter *pAdapter, bool reinit)
 	struct net_device *dev = pAdapter->dev;
 	struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(pAdapter);
 	QDF_STATUS status;
-	v_CONTEXT_t p_cds_context = (WLAN_HDD_GET_CTX(pAdapter))->pcds_context;
 	v_CONTEXT_t sapContext = NULL;
 	int ret;
 	enum tQDF_ADAPTER_MODE mode;
@@ -6488,7 +6487,7 @@ QDF_STATUS hdd_init_ap_mode(struct hdd_adapter *pAdapter, bool reinit)
 	if (reinit)
 		sapContext = pAdapter->sessionCtx.ap.sapContext;
 	else {
-		sapContext = wlansap_open(p_cds_context);
+		sapContext = wlansap_open();
 		if (sapContext == NULL) {
 			hdd_err("wlansap_open failed!!");
 			return QDF_STATUS_E_FAULT;

+ 1 - 1
core/sap/inc/sap_api.h

@@ -893,7 +893,7 @@ void sap_cleanup_channel_list(void *sapContext);
 bool sap_is_auto_channel_select(void *pvos_gctx);
 
 QDF_STATUS wlansap_get_wps_state(void *p_cds_gctx, bool *pbWPSState);
-void *wlansap_open(void *p_cds_gctx);
+void *wlansap_open(void);
 QDF_STATUS wlansap_global_init(void);
 QDF_STATUS wlansap_global_deinit(void);
 QDF_STATUS wlansap_start(void *p_cds_gctx, enum tQDF_ADAPTER_MODE mode,

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

@@ -253,7 +253,6 @@ void wlansap_context_put(ptSapContext ctx)
 
 /**
  * wlansap_open() - WLAN SAP open function call
- * @p_cds_gctx: Pointer to the global cds context; a handle to SAP's
  *
  * Called at driver initialization (cds_open). SAP will initialize
  * all its internal resources and will wait for the call to start to
@@ -261,7 +260,7 @@ void wlansap_context_put(ptSapContext ctx)
  *
  * Return: Pointer to the SAP context
  */
-void *wlansap_open(void *p_cds_gctx)
+void *wlansap_open(void)
 {
 	ptSapContext pSapCtx;
 	QDF_STATUS status;