From 0deba7575b766af9f039c19acbbfba0cda8b6c74 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Wed, 27 May 2020 17:16:41 +0530 Subject: [PATCH] qcacld-3.0: Clean up wlan_sap_set_vht_ch_width Remove wlan_sap_set_vht_ch_width as it wasn't used anywhere. Change-Id: I556269bfeb4df243720397a6ad2500b90bc8835d CRs-Fixed: 2695940 --- core/sap/inc/sap_api.h | 12 ------------ core/sap/src/sap_module.c | 11 ----------- 2 files changed, 23 deletions(-) diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index f5864e70cae5..11c342128358 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -1226,18 +1226,6 @@ eCsrPhyMode wlan_sap_get_phymode(struct sap_context *sap_ctx); */ uint32_t wlan_sap_get_vht_ch_width(struct sap_context *sap_ctx); -/** - * 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); - /** * wlan_sap_get_ch_params() - get ch params * @sap_ctx: Pointer to Sap Context diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 5264c645c314..f2a44cad513c 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -592,17 +592,6 @@ uint32_t wlan_sap_get_vht_ch_width(struct sap_context *sap_ctx) return sap_ctx->ch_params.ch_width; } -void wlan_sap_set_vht_ch_width(struct sap_context *sap_ctx, - uint32_t vht_channel_width) -{ - if (!sap_ctx) { - sap_err("Invalid SAP pointer"); - return; - } - - sap_ctx->ch_params.ch_width = vht_channel_width; -} - bool wlan_sap_get_ch_params(struct sap_context *sap_ctx, struct ch_params *ch_params) {