ソースを参照

qcacld-3.0: Remove wlansap_get_state()

Function wlansap_get_state() is unused, so remove it.

Change-Id: I3736c498a2409e0fe6d67b78fcce2a5e88fefdf5
CRs-Fixed: 2108343
Jeff Johnson 7 年 前
コミット
0654b69a16
2 ファイル変更0 行追加25 行削除
  1. 0 1
      core/sap/inc/sap_api.h
  2. 0 24
      core/sap/src/sap_module.c

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

@@ -905,7 +905,6 @@ QDF_STATUS wlansap_stop(void *p_cds_gctx);
 QDF_STATUS wlansap_close(void *p_cds_gctx);
 typedef QDF_STATUS (*tpWLAN_SAPEventCB)(tpSap_Event pSapEvent,
 					void *pUsrContext);
-uint8_t wlansap_get_state(void *p_cds_gctx);
 
 /**
  * wlansap_is_channel_in_nol_list() - This API checks if channel is

+ 0 - 24
core/sap/src/sap_module.c

@@ -537,30 +537,6 @@ wlansap_pmc_full_pwr_req_cb(void *callbackContext, QDF_STATUS status)
 
 } /* wlansap_pmc_full_pwr_req_cb */
 
-/**
- * wlansap_get_state() - get SAP state
- * @pCtx: Pointer to the global cds context; a handle to SAP's control block
- *        can be extracted from its context. When MBSSID feature is enabled,
- *        SAP context is directly passed to SAP APIs.
- *
- * This api returns the current SAP state to the caller.
- *
- * Return: uint8_t - the SAP FSM state.
- */
-uint8_t wlansap_get_state(void *pCtx)
-{
-	ptSapContext pSapCtx = NULL;
-
-	pSapCtx = CDS_GET_SAP_CB(pCtx);
-
-	if (NULL == pSapCtx) {
-		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
-			  "%s: Invalid SAP pointer from pCtx", __func__);
-		return QDF_STATUS_E_FAULT;
-	}
-	return pSapCtx->sapsMachine;
-}
-
 bool wlansap_is_channel_in_nol_list(void *p_cds_gctx,
 				    uint8_t channelNumber,
 				    ePhyChanBondState chanBondState)