From b3c4f7e460115772c26b9122c4db52ac04aca8a7 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 25 Sep 2017 18:23:05 -0700 Subject: [PATCH] qcacld-3.0: Refine API wlansap_set_dfs_nol() See change "qcacld-3.0: Refine API wlansap_open()" for the API history. Update wlansap_set_dfs_nol() to use the true struct pointer type. Change-Id: I762ef985ee5ec40c79d4cdaafc4e89710edb2366 CRs-Fixed: 2116267 --- core/sap/inc/sap_api.h | 3 ++- core/sap/src/sap_module.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index b2a262968a28..b174851147de 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -1314,7 +1314,8 @@ QDF_STATUS wlansap_get_dfs_nol(void *pSapCtx, uint8_t *nol, uint32_t *nol_len); * * Return: QDF_STATUS */ -QDF_STATUS wlansap_set_dfs_nol(void *sap_ctx, eSapDfsNolType conf); +QDF_STATUS wlansap_set_dfs_nol(struct sap_context *sap_ctx, + eSapDfsNolType conf); /** * wlan_sap_set_vendor_acs() - Set vendor specific acs in sap context diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 5db8517903b5..59ed616ba136 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -2607,22 +2607,22 @@ QDF_STATUS wlansap_get_dfs_nol(void *pSapCtx, uint8_t *nol, uint32_t *nol_len) return QDF_STATUS_SUCCESS; } -QDF_STATUS wlansap_set_dfs_nol(void *psap_ctx, eSapDfsNolType conf) +QDF_STATUS wlansap_set_dfs_nol(struct sap_context *sap_ctx, + eSapDfsNolType conf) { - struct sap_context *sap_ctx = psap_ctx; void *hal = NULL; tpAniSirGlobal mac = NULL; if (!sap_ctx) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, - "%s: Invalid SAP pointer from p_cds_gctx", __func__); + "%s: Invalid SAP pointer", __func__); return QDF_STATUS_E_FAULT; } hal = CDS_GET_HAL_CB(); if (!hal) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, - "%s: Invalid HAL pointer from p_cds_gctx", __func__); + "%s: Invalid HAL pointer", __func__); return QDF_STATUS_E_FAULT; }