Ver código fonte

qcacld-3.0: Refine API wlansap_clear_acl()

See change "qcacld-3.0: Refine API wlansap_open()" for the API history.
Update wlansap_clear_acl() to use the true struct pointer type.

Change-Id: I7ffab7e01a107ad476c2a02ffb60bad4d9b62a97
CRs-Fixed: 2116267
Jeff Johnson 7 anos atrás
pai
commit
31d1a74d61
2 arquivos alterados com 9 adições e 5 exclusões
  1. 8 1
      core/sap/inc/sap_api.h
  2. 1 4
      core/sap/src/sap_module.c

+ 8 - 1
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

+ 1 - 4
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) {