From bb4d77cb2587781cba38d25d712797671f11326d Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 24 Sep 2017 19:16:50 -0700 Subject: [PATCH] qcacld-3.0: Refine API wlansap_is_channel_in_nol_list() See change "qcacld-3.0: Refine API wlansap_open()" for the API history. Update wlansap_is_channel_in_nol_list() to use the true struct pointer type. Change-Id: Ia15403523d27023f50d676f3c7099b018f7d21f7 CRs-Fixed: 2116267 --- core/sap/inc/sap_api.h | 10 ++++++---- core/sap/src/sap_module.c | 6 +----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index e6e3fa417810..325e61ed1360 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -874,14 +874,16 @@ typedef QDF_STATUS (*tpWLAN_SAPEventCB)(tpSap_Event pSapEvent, /** * wlansap_is_channel_in_nol_list() - This API checks if channel is * in nol list - * @ctx: context pointer - * @channel: channel + * @pSapCtx: SAP context pointer + * @channelNumber: channel number * @chanBondState: channel bonding state * - * Return: True/False + * Return: True if the channel is in the NOL list, false otherwise */ -bool wlansap_is_channel_in_nol_list(void *p_cds_gctx, uint8_t channel_no, +bool wlansap_is_channel_in_nol_list(struct sap_context *pSapCtx, + uint8_t channelNumber, ePhyChanBondState chanBondState); + /** * wlansap_is_channel_leaking_in_nol() - This API checks if channel is leaking * in nol list diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index c6a8ae481574..b9544e1140c2 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -420,14 +420,10 @@ QDF_STATUS wlansap_close(struct sap_context *pSapCtx) return QDF_STATUS_SUCCESS; } /* wlansap_close */ -bool wlansap_is_channel_in_nol_list(void *p_cds_gctx, +bool wlansap_is_channel_in_nol_list(struct sap_context *pSapCtx, uint8_t channelNumber, ePhyChanBondState chanBondState) { - struct sap_context *pSapCtx = NULL; - - pSapCtx = CDS_GET_SAP_CB(p_cds_gctx); - if (!pSapCtx) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH, "%s: Invalid SAP pointer from pCtx", __func__);