123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- /*
- * Copyright (c) 2012-2018 The Linux Foundation. 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 <wlan_objmgr_psoc_obj.h>
- #include <wlan_objmgr_pdev_obj.h>
- #include <wlan_objmgr_vdev_obj.h>
- #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
- * @psoc: pointer to psoc object
- * @scan_obj: pointer to scan object
- *
- * 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
|