From 730c250ce50406ecbb29385620d8486ef058864e Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 25 Sep 2017 14:33:45 -0700 Subject: [PATCH] qcacld-3.0: Refine API wlansap_send_action() See change "qcacld-3.0: Refine API wlansap_open()" for the API history. Update wlansap_send_action() to use the true struct pointer type. Change-Id: I122b84fd9156558789b1b9d87120804d5598f3a4 CRs-Fixed: 2116267 --- core/sap/inc/sap_api.h | 20 +++++++++++++++++--- core/sap/src/sap_module.c | 22 ++++------------------ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index 0ea6b422d32e..95b44ad641ad 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -1123,9 +1123,23 @@ QDF_STATUS wlansap_modify_acl(struct sap_context *sap_ctx, uint8_t *peer_sta_mac, eSapACLType list_type, eSapACLCmdType cmd); -QDF_STATUS wlansap_send_action - (void *p_cds_gctx, - const uint8_t *pBuf, uint32_t len, uint16_t wait, uint16_t channel_freq); +/** + * wlansap_send_action() - send action frame + * @pSapCtx: Pointer to the SAP context + * @pBuf: Pointer of the action frame to be transmitted + * @len: Length of the action frame in @pBuf + * @wait: Unused + * @channel_freq: Channel upon which to send the frame + * + * This api function provides to send action frame sent by upper layer. + * + * Return: The QDF_STATUS code associated with performing the operation +* QDF_STATUS_SUCCESS: Success and error code otherwise + */ +QDF_STATUS wlansap_send_action(struct sap_context *pSapCtx, + const uint8_t *pBuf, uint32_t len, + uint16_t wait, uint16_t channel_freq); + QDF_STATUS wlansap_remain_on_channel (void *p_cds_gctx, uint8_t channel, diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 347df49cd97a..2f7212f7d1cf 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -1489,30 +1489,16 @@ QDF_STATUS wlan_sap_getstation_ie_information(struct sap_context *sap_ctx, return qdf_status; } -/** - * wlansap_send_action() - send action frame - * @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. - * @pBuf: Pointer of the action frame to be transmitted - * @len: Length of the action frame - * - * This api function provides to send action frame sent by upper layer. - * - * Return: The QDF_STATUS code associated with performing the operation -* QDF_STATUS_SUCCESS: Success and error code otherwise - */ -QDF_STATUS wlansap_send_action(void *pCtx, const uint8_t *pBuf, - uint32_t len, uint16_t wait, uint16_t channel_freq) +QDF_STATUS wlansap_send_action(struct sap_context *pSapCtx, + const uint8_t *pBuf, uint32_t len, + uint16_t wait, uint16_t channel_freq) { - struct sap_context *pSapCtx = NULL; void *hHal = NULL; QDF_STATUS qdf_ret_status = QDF_STATUS_E_FAILURE; - pSapCtx = CDS_GET_SAP_CB(pCtx); if (NULL == pSapCtx) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, - "%s: Invalid SAP pointer from pCtx", + "%s: Invalid SAP pointer", __func__); return QDF_STATUS_E_FAULT; }