From 0654b69a16bbd78f1a945192be4130e7b6c7a45f Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 8 Sep 2017 10:09:16 -0700 Subject: [PATCH] qcacld-3.0: Remove wlansap_get_state() Function wlansap_get_state() is unused, so remove it. Change-Id: I3736c498a2409e0fe6d67b78fcce2a5e88fefdf5 CRs-Fixed: 2108343 --- core/sap/inc/sap_api.h | 1 - core/sap/src/sap_module.c | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index d23721bfa788..cc71315a5d46 100644 --- a/core/sap/inc/sap_api.h +++ b/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 diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index e06c0eb2fa78..309882d90d84 100644 --- a/core/sap/src/sap_module.c +++ b/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)