From 617fe64a3d42fa3d3419bcff8e3240b13ed9ced7 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 24 Sep 2017 17:52:51 -0700 Subject: [PATCH] qcacld-3.0: Refine API wlan_sap_getstation_ie_information() See change "qcacld-3.0: Refine API wlansap_open()" for the API history. Update wlan_sap_getstation_ie_information() to use the true struct pointer type. Change-Id: I7a3be736210ffe44c89dd96c7d70e4fda04938c6 CRs-Fixed: 2116267 --- core/sap/inc/sap_api.h | 17 +++++++++++++++-- core/sap/src/sap_module.c | 22 ++++------------------ 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index fda3ef8ab5c0..cb1cbf82ae02 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -921,8 +921,21 @@ 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 wlan_sap_getstation_ie_information(void *p_cds_gctx, - uint32_t *pLen, uint8_t *pBuf); + +/** + * wlan_sap_getstation_ie_information() - RSNIE Population + * @sap_ctx: Pointer to the SAP context + * @len: Length of @buf + * @buf: RSNIE IE data + * + * Populate RSN IE from CSR to HDD context + * + * Return: QDF_STATUS enumeration + */ + +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); QDF_STATUS wlansap_get_acl_accept_list(void *p_cds_gctx, struct qdf_mac_addr *pAcceptList, uint8_t *nAcceptList); diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 38d4e24426ba..fdae226fafa3 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -1634,29 +1634,15 @@ QDF_STATUS wlansap_set_key_sta(void *pCtx, tCsrRoamSetKey *pSetKeyInfo) return qdf_status; } -/** - * wlan_sap_getstation_ie_information() - RSNIE Population - * - * @ctx: Global context - * @len: Length of @buf - * @buf: RSNIE IE data - * - * Populate RSN IE from CSR to HDD context - * - * Return: QDF_STATUS enumeration - */ - -QDF_STATUS -wlan_sap_getstation_ie_information - (void *ctx, uint32_t *len, uint8_t *buf) { +QDF_STATUS wlan_sap_getstation_ie_information(struct sap_context *sap_ctx, + uint32_t *len, uint8_t *buf) +{ QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE; - struct sap_context *sap_ctx = NULL; uint32_t ie_len = 0; - sap_ctx = CDS_GET_SAP_CB(ctx); if (NULL == sap_ctx) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, - FL("Invalid SAP pointer from pCtx")); + FL("Invalid SAP pointer")); return QDF_STATUS_E_FAULT; }