diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index da1c3147d5de..d73410972146 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -1018,8 +1018,19 @@ QDF_STATUS wlansap_get_acl_accept_list(struct sap_context *pSapCtx, struct qdf_mac_addr *pAcceptList, uint8_t *nAcceptList); -QDF_STATUS wlansap_get_acl_deny_list(void *pCtx, - struct qdf_mac_addr *pDenyList, uint8_t *nDenyList); +/** + * wlansap_get_acl_deny_list() - Get ACL deny list + * @pSapCtx: Pointer to the SAP context + * @pDenyList: Pointer to the buffer to store the ACL deny list + * @nDenyList: Pointer to the location to store the number of + * entries in the ACL deny list. + * + * Return: QDF_STATUS. If success the data was returned, otherwise an + * error occurred. + */ +QDF_STATUS wlansap_get_acl_deny_list(struct sap_context *pSapCtx, + struct qdf_mac_addr *pDenyList, + uint8_t *nDenyList); /** * wlansap_set_acl_mode() - Set the SAP ACL mode diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 954ea96991f8..421befacce35 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -876,19 +876,17 @@ QDF_STATUS wlansap_get_acl_accept_list(struct sap_context *pSapCtx, return QDF_STATUS_SUCCESS; } -/* API to get Deny List */ -QDF_STATUS -wlansap_get_acl_deny_list(void *pCtx, struct qdf_mac_addr *pDenyList, - uint8_t *nDenyList) +QDF_STATUS wlansap_get_acl_deny_list(struct sap_context *pSapCtx, + struct qdf_mac_addr *pDenyList, + uint8_t *nDenyList) { - struct sap_context *pSapCtx = CDS_GET_SAP_CB(pCtx); if (NULL == pSapCtx) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, "%s: Invalid SAP pointer from p_cds_gctx", __func__); return QDF_STATUS_E_FAULT; } - memcpy((void *)pDenyList, (void *)pSapCtx->denyMacList, + memcpy(pDenyList, pSapCtx->denyMacList, (pSapCtx->nDenyMac * QDF_MAC_ADDR_SIZE)); *nDenyList = pSapCtx->nDenyMac; return QDF_STATUS_SUCCESS;