diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index d73410972146..ee5e99de4d17 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -1002,7 +1002,14 @@ QDF_STATUS wlansap_set_key_sta(void *p_cds_gctx, QDF_STATUS wlan_sap_getstation_ie_information(struct sap_context *sap_ctx, uint32_t *len, uint8_t *buf); -QDF_STATUS wlansap_clear_acl(void *p_cds_gctx); +/** + * wlansap_clear_acl() - Clear all ACLs + * @pSapCtx: Pointer to the SAP context + * + * Return: QDF_STATUS. If success the ACLs were cleared, otherwise an + * error occurred. + */ +QDF_STATUS wlansap_clear_acl(struct sap_context *pSapCtx); /** * wlansap_get_acl_accept_list() - Get ACL accept list diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 421befacce35..887a14e12a9e 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -892,11 +892,8 @@ QDF_STATUS wlansap_get_acl_deny_list(struct sap_context *pSapCtx, return QDF_STATUS_SUCCESS; } -/* This routine will clear all the entries in accept list as well as deny list */ - -QDF_STATUS wlansap_clear_acl(void *pCtx) +QDF_STATUS wlansap_clear_acl(struct sap_context *pSapCtx) { - struct sap_context *pSapCtx = CDS_GET_SAP_CB(pCtx); uint8_t i; if (NULL == pSapCtx) {