|
@@ -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)
|
|
|
{
|