From cd1ee1eedd4dc7896e25ba1b008f1c6ba2dfd27e Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 25 Sep 2017 14:50:49 -0700 Subject: [PATCH] qcacld-3.0: Refine API wlan_sap_update_next_channel() See change "qcacld-3.0: Refine API wlansap_open()" for the API history. Update wlan_sap_update_next_channel() to use the true struct pointer type. Change-Id: I10226f1bc7d4e47fb363de54b4bc0bc7784416ef CRs-Fixed: 2116267 --- core/sap/inc/sap_api.h | 8 +++++--- core/sap/src/sap_module.c | 7 +++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index e595ac5917b5..e0a047641557 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -936,14 +936,16 @@ QDF_STATUS wlansap_stop_bss(struct sap_context *pSapCtx); /** * wlan_sap_update_next_channel() - Update next channel configured using vendor * command in SAP context - * @ctx: SAP context + * @sap_ctx: SAP context * @channel: channel number * @chan_bw: channel width * * Return: QDF_STATUS */ -QDF_STATUS wlan_sap_update_next_channel(void *ctx, uint8_t channel, - enum phy_ch_width chan_bw); +QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx, + uint8_t channel, + enum phy_ch_width chan_bw); + QDF_STATUS wlan_sap_set_pre_cac_status(void *ctx, bool status, tHalHandle handle); QDF_STATUS wlan_sap_set_chan_before_pre_cac(void *ctx, diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 42ac8e4a1d02..c2dd2db2f02f 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -1591,11 +1591,10 @@ QDF_STATUS wlansap_cancel_remain_on_channel(struct sap_context *pSapCtx, return QDF_STATUS_E_FAULT; } -QDF_STATUS wlan_sap_update_next_channel(void *ctx, uint8_t channel, - enum phy_ch_width chan_bw) +QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx, + uint8_t channel, + enum phy_ch_width chan_bw) { - struct sap_context *sap_ctx = CDS_GET_SAP_CB(ctx); - if (!sap_ctx) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, "%s: Invalid SAP pointer", __func__);