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__);