From 2de14da2a56c856fe95c0873f0741482b4cc85d9 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 24 Sep 2017 20:23:37 -0700 Subject: [PATCH] qcacld-3.0: Refine API wlan_sap_set_vht_ch_width() See change "qcacld-3.0: Refine API wlansap_open()" for the API history. Update wlan_sap_set_vht_ch_width() to use the true struct pointer type. Change-Id: I0858cb97b0a99fddcbcb88551280858789d8c0e9 CRs-Fixed: 2116267 --- core/sap/inc/sap_api.h | 13 ++++++++++++- core/sap/src/sap_module.c | 16 +++------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index 03961e1dbd84..b89724b821bd 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -1066,7 +1066,18 @@ eCsrPhyMode wlan_sap_get_phymode(struct sap_context *sap_ctx); */ uint32_t wlan_sap_get_vht_ch_width(struct sap_context *sap_ctx); -void wlan_sap_set_vht_ch_width(void *ctx, uint32_t vht_channel_width); +/** + * wlan_sap_set_vht_ch_width() - Sets SAP VHT channel width. + * @sap_ctx: Pointer to Sap Context + * @vht_channel_width: SAP VHT channel width value. + * + * This function sets the SAP current VHT channel width. + * + * Return: None + */ +void wlan_sap_set_vht_ch_width(struct sap_context *sap_ctx, + uint32_t vht_channel_width); + QDF_STATUS wlansap_update_sap_config_add_ie(tsap_Config_t *pConfig, const uint8_t * pAdditionIEBuffer, diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index adf4da718dac..73878a23dc86 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -609,22 +609,12 @@ uint32_t wlan_sap_get_vht_ch_width(struct sap_context *sap_ctx) return sap_ctx->ch_params.ch_width; } -/** - * wlan_sap_set_vht_ch_width() - Sets SAP VHT channel width. - * @ctx: Pointer to cds Context or Sap Context based on MBSSID - * @vht_channel_width: SAP VHT channel width value. - * - * This function sets the SAP current VHT channel with. - * - * Return: None - */ -void wlan_sap_set_vht_ch_width(void *ctx, uint32_t vht_channel_width) +void wlan_sap_set_vht_ch_width(struct sap_context *sap_ctx, + uint32_t vht_channel_width) { - struct sap_context *sap_ctx = CDS_GET_SAP_CB(ctx); - if (!sap_ctx) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, - FL("Invalid SAP pointer from ctx")); + FL("Invalid SAP pointer")); return; }