diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index 0374f57c9d74..69e3ffed4aae 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -868,8 +868,6 @@ QDF_STATUS wlansap_set_mode(void *p_cds_gctx, uint32_t mode); QDF_STATUS wlansap_get_acl_mode(void *p_cds_gctx, eSapMacAddrACL *mode); QDF_STATUS wlansap_modify_acl(void *p_cds_gctx, uint8_t *pPeerStaMac, eSapACLType listType, eSapACLCmdType cmd); -QDF_STATUS wlansap_set_wparsn_ies - (void *p_cds_gctx, uint8_t *pWPARSNIEs, uint32_t WPARSNIEsLen); QDF_STATUS wlansap_send_action (void *p_cds_gctx, const uint8_t *pBuf, uint32_t len, uint16_t wait, uint16_t channel_freq); diff --git a/core/sap/src/sap_internal.h b/core/sap/src/sap_internal.h index b958b0254abb..b5f2e30ad530 100644 --- a/core/sap/src/sap_internal.h +++ b/core/sap/src/sap_internal.h @@ -191,7 +191,6 @@ struct sap_context { uint32_t nStaWPARSnReqIeLength; uint8_t pStaWpaRsnReqIE[MAX_ASSOC_IND_IE_LEN]; - tSirRSNie APWPARSNIEs; uint8_t *channelList; uint8_t num_of_channel; diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 1fa6b7ff02f7..849bc256949b 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -1806,58 +1806,6 @@ wlan_sap_getstation_ie_information return qdf_status; } -/** - * wlansap_set_wparsn_ies() - set WPA RSN IEs - * @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. - * @pWPARSNIEs : buffer to the WPA/RSN IEs - * @WPARSNIEsLen: length of WPA/RSN IEs - * - * This api function provides for Ap App/HDD to set AP WPA and RSN IE in its - * beacon and probe response. - * - * Return: The QDF_STATUS code associated with performing the operation - * QDF_STATUS_SUCCESS: Success and error code otherwise - */ -QDF_STATUS wlansap_set_wparsn_ies - (void *pCtx, uint8_t *pWPARSNIEs, uint32_t WPARSNIEsLen) { - struct sap_context *pSapCtx = NULL; - QDF_STATUS qdf_ret_status = QDF_STATUS_E_FAILURE; - void *hHal = NULL; - - pSapCtx = CDS_GET_SAP_CB(pCtx); - if (NULL == pSapCtx) { - QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, - "%s: Invalid SAP pointer from pCtx", - __func__); - return QDF_STATUS_E_FAULT; - } - - hHal = CDS_GET_HAL_CB(); - if (NULL == hHal) { - QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, - "%s: Invalid HAL pointer from p_cds_gctx", - __func__); - return QDF_STATUS_E_FAULT; - } - - pSapCtx->APWPARSNIEs.length = (uint16_t) WPARSNIEsLen; - qdf_mem_copy(pSapCtx->APWPARSNIEs.rsnIEdata, pWPARSNIEs, - WPARSNIEsLen); - - qdf_ret_status = - sme_roam_update_apwparsni_es(hHal, pSapCtx->sessionId, - &pSapCtx->APWPARSNIEs); - - if (qdf_ret_status == QDF_STATUS_SUCCESS) - return QDF_STATUS_SUCCESS; - else - return QDF_STATUS_E_FAULT; - - return QDF_STATUS_E_FAULT; -} - /** * wlansap_send_action() - send action frame * @pCtx: Pointer to the global cds context; a handle to SAP's control block