Ver Fonte

qcacld-3.0: Remove wlansap_*_wps_session_overlap()

Functions wlansap_remove_wps_session_overlap() and
wlansap_get_wps_session_overlap() are unused, so remove them.

Change-Id: Ib36fe420478ea9a5c5485a4cff6b5bd01d2a51f5
CRs-Fixed: 2108345
Jeff Johnson há 7 anos atrás
pai
commit
9b495ddfa0
2 ficheiros alterados com 0 adições e 77 exclusões
  1. 0 3
      core/sap/inc/sap_api.h
  2. 0 74
      core/sap/src/sap_module.c

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

@@ -964,9 +964,6 @@ QDF_STATUS wlansap_set_channel_change_with_csa(void *p_cds_gctx,
 	uint32_t targetChannel, enum phy_ch_width target_bw, bool strict);
 QDF_STATUS wlansap_set_key_sta(void *p_cds_gctx,
 	tCsrRoamSetKey *pSetKeyInfo);
-QDF_STATUS wlansap_remove_wps_session_overlap(void *p_cds_gctx,
-	struct qdf_mac_addr pRemoveMac);
-QDF_STATUS wlansap_get_wps_session_overlap(void *p_cds_gctx);
 QDF_STATUS wlansap_set_counter_measure(void *p_cds_gctx, bool bEnable);
 QDF_STATUS wlan_sap_getstation_ie_information(void *p_cds_gctx,
 	uint32_t *pLen, uint8_t *pBuf);

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

@@ -1064,80 +1064,6 @@ QDF_STATUS wlansap_stop_bss(void *pCtx)
 	return qdf_status;
 }
 
-/**
- * wlansap_remove_wps_session_overlap() - remove overlapping wps session.
- * @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.
- * @pRemoveMac: pointer to struct qdf_mac_addr for session MAC address
- *
- * This api function provides for Ap App/HDD to remove an entry from session
- * overlap info.
- *
- * Return: The QDF_STATUS code associated with performing the operation
- *         QDF_STATUS_SUCCESS:  Success
- *         QDF_STATUS_E_FAULT:  Session is not dectected.
- *                              The parameter is function not valid.
- */
-QDF_STATUS
-wlansap_remove_wps_session_overlap(void *pCtx,
-				   struct qdf_mac_addr pRemoveMac)
-{
-	ptSapContext pSapCtx = CDS_GET_SAP_CB(pCtx);
-
-	/*------------------------------------------------------------------------
-	   Sanity check
-	   Extract SAP control block
-	   ------------------------------------------------------------------------*/
-	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;
-	}
-
-	sme_roam_get_wps_session_overlap(CDS_GET_HAL_CB(pSapCtx->p_cds_gctx),
-					 pSapCtx->sessionId, pSapCtx->pUsrContext,
-					 (void **) pSapCtx->pfnSapEventCallback,
-					 pRemoveMac);
-
-	return QDF_STATUS_SUCCESS;
-}
-
-/**
- * wlansap_get_wps_session_overlap() - get overlapping wps session.
- * @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 function provides for Ap App/HDD to get WPS session overlap info.
- *
- * Return: The QDF_STATUS code associated with performing the operation
- *         QDF_STATUS_SUCCESS:  Success
- */
-QDF_STATUS wlansap_get_wps_session_overlap(void *pCtx)
-{
-	struct qdf_mac_addr pRemoveMac = QDF_MAC_ADDR_ZERO_INITIALIZER;
-
-	ptSapContext pSapCtx = CDS_GET_SAP_CB(pCtx);
-
-	/*------------------------------------------------------------------------
-	   Sanity check
-	   Extract SAP control block
-	   ------------------------------------------------------------------------*/
-	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;
-	}
-
-	sme_roam_get_wps_session_overlap(CDS_GET_HAL_CB(pSapCtx->p_cds_gctx),
-					 pSapCtx->sessionId, pSapCtx->pUsrContext,
-					 (void **) pSapCtx->pfnSapEventCallback,
-					 pRemoveMac);
-
-	return QDF_STATUS_SUCCESS;
-}
-
 /* This routine will set the mode of operation for ACL dynamically*/
 QDF_STATUS wlansap_set_mode(void *pCtx, uint32_t mode)
 {