/* * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ /** * DOC: This file contains APIs of EXTSCAN component */ #ifndef _WLAN_EXTSCAN_API_H_ #define _WLAN_EXTSCAN_API_H_ #include #include #include #include "../../core/src/wlan_scan_main.h" #ifdef FEATURE_WLAN_EXTSCAN /** * extscan_get_enable() - API to get extscan enable value * @psoc: pointer to psoc object * * Return: true if enabled else false. */ bool extscan_get_enable(struct wlan_objmgr_psoc *psoc); /** * extscan_get_passive_max_time() - API to get passive * max channel time * @psoc: pointer to psoc object * @passive_max_chn_time: extscan passive max channel time * * Return: none */ void extscan_get_passive_max_time(struct wlan_objmgr_psoc *psoc, uint32_t *passive_max_chn_time); /** * extscan_get_active_max_time() - API to get active * max channel time * @psoc: pointer to psoc object * @active_max_chn_time: extscan active max channel time * * Return: none */ void extscan_get_active_max_time(struct wlan_objmgr_psoc *psoc, uint32_t *active_max_chn_time); /** * extscan_get_active_min_time() - API to set active * min channel time * @psoc: pointer to psoc object * @active_min_chn_time: extscan active min channel time * * Return: none */ void extscan_get_active_min_time(struct wlan_objmgr_psoc *psoc, uint32_t *active_min_chn_time); /** * wlan_extscan_global_init() - Initialize extscan * @psoc: pointer to psoc object * @scan_obj: pointer to scan object * * Return: QDF_STATUS */ QDF_STATUS wlan_extscan_global_init(struct wlan_objmgr_psoc *psoc, struct wlan_scan_obj *scan_obj); /** * wlan_extscan_global_deinit() - Deinitialize extscan * * Return: QDF_STATUS */ QDF_STATUS wlan_extscan_global_deinit(void); #else static inline bool cfg_extscan_get_enable(struct wlan_objmgr_psoc *psoc) { return false; } static inline void cfg_extscan_get_passive_max_time(struct wlan_objmgr_psoc *psoc, uint32_t *passive_max_chn_time) { } static inline void cfg_extscan_get_active_max_time(struct wlan_objmgr_psoc *psoc, uint32_t *active_max_chn_time) { } static inline void cfg_extscan_get_active_min_time(struct wlan_objmgr_psoc *psoc, uint32_t *active_min_chn_time) { } static inline QDF_STATUS wlan_extscan_global_init(struct wlan_objmgr_psoc *psoc, struct wlan_scan_obj *scan_obj) { return QDF_STATUS_SUCCESS; } static inline QDF_STATUS wlan_extscan_global_deinit(void) { return QDF_STATUS_SUCCESS; } #endif #endif