From 4549efa73bb937640e8a3cc520b39b0f462d763d Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Tue, 10 Oct 2017 17:10:47 -0700 Subject: [PATCH] qcacld-3.0: Use updated dfs public function Dfs public function are renamed to have utils_ prefix, make sure to call new dfs public API's. Change-Id: Ib36ebb6ca4d3838c5e7468e22f6dd5182a0a08e0 CRs-Fixed: 2124373 --- core/hdd/src/wlan_hdd_hostapd.c | 2 +- core/sap/src/sap_fsm.c | 4 ++-- core/sap/src/sap_module.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index aeec8dc436dd..47f550297f47 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -3976,7 +3976,7 @@ static __iw_softap_getparam(struct net_device *dev, return -EINVAL; } - dfs_print_nol_channels(pdev); + utils_dfs_print_nol_channels(pdev); } break; diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 7d88b6295926..85f06febda4d 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -922,7 +922,7 @@ static inline void sap_event_init(ptWLAN_SAPEvent sapEvent) **/ static uint8_t sap_random_channel_sel(struct sap_context *sap_ctx) { - int ch; + uint8_t ch; uint8_t ch_wd; struct wlan_objmgr_pdev *pdev = NULL; tHalHandle hal; @@ -964,7 +964,7 @@ static uint8_t sap_random_channel_sel(struct sap_context *sap_ctx) acs_info.acs_mode = sap_ctx->acs_cfg->acs_mode; acs_info.start_ch = sap_ctx->acs_cfg->start_ch; acs_info.end_ch = sap_ctx->acs_cfg->end_ch; - if (QDF_IS_STATUS_ERROR(dfs_get_random_channel( + if (QDF_IS_STATUS_ERROR(utils_dfs_get_random_channel( pdev, 0, ch_params, &hw_mode, &ch, &acs_info))) { /* No available channel found */ QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index ceae59c3aeed..0c618d1ceae6 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -2556,7 +2556,7 @@ QDF_STATUS wlansap_set_dfs_nol(struct sap_context *sap_ctx, "%s: null pdev", __func__); return QDF_STATUS_E_FAULT; } - dfs_clear_nol_channels(pdev); + utils_dfs_clear_nol_channels(pdev); } else if (conf == eSAP_DFS_NOL_RANDOMIZE) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, "%s: Randomize the DFS NOL", __func__);