1 /******************************************************************************
2 *
3 * Copyright(c) 2007 - 2020 Realtek Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 *****************************************************************************/
15 #ifndef __RTW_NLRTW_H_
16 #define __RTW_NLRTW_H_
17
18 #ifdef CONFIG_RTW_NLRTW
19 int rtw_nlrtw_init(void);
20 int rtw_nlrtw_deinit(void);
21 int rtw_nlrtw_ch_util_rpt(_adapter *adapter, u8 n_rpts, u8 *val, u8 **mac_addr);
22 int rtw_nlrtw_reg_change_event(_adapter *adapter);
23 int rtw_nlrtw_reg_beacon_hint_event(_adapter *adapter);
24 int rtw_nlrtw_radio_opmode_notify(struct rf_ctl_t *rfctl);
25 #else
rtw_nlrtw_init(void)26 static inline int rtw_nlrtw_init(void) {return _FAIL;}
rtw_nlrtw_deinit(void)27 static inline int rtw_nlrtw_deinit(void) {return _FAIL;}
rtw_nlrtw_ch_util_rpt(_adapter * adapter,u8 n_rpts,u8 * val,u8 ** mac_addr)28 static inline int rtw_nlrtw_ch_util_rpt(_adapter *adapter, u8 n_rpts, u8 *val, u8 **mac_addr) {return _FAIL;}
rtw_nlrtw_reg_change_event(_adapter * adapter)29 static inline int rtw_nlrtw_reg_change_event(_adapter *adapter) {return _FAIL;}
rtw_nlrtw_reg_beacon_hint_event(_adapter * adapter)30 static inline int rtw_nlrtw_reg_beacon_hint_event(_adapter *adapter) {return _FAIL;}
rtw_nlrtw_radio_opmode_notify(struct rf_ctl_t * rfctl)31 static inline int rtw_nlrtw_radio_opmode_notify(struct rf_ctl_t *rfctl) {return _FAIL;}
32 #endif /* CONFIG_RTW_NLRTW */
33
34 #if defined(CONFIG_RTW_NLRTW) && defined(CONFIG_DFS_MASTER)
35 int rtw_nlrtw_radar_detect_event(_adapter *adapter, u8 cch, u8 bw);
36 int rtw_nlrtw_cac_finish_event(_adapter *adapter, u8 cch, u8 bw);
37 int rtw_nlrtw_cac_abort_event(_adapter *adapter, u8 cch, u8 bw);
38 int rtw_nlrtw_nop_finish_event(_adapter *adapter, u8 cch, u8 bw);
39 int rtw_nlrtw_nop_start_event(_adapter *adapter, u8 cch, u8 bw);
40 #else
rtw_nlrtw_radar_detect_event(_adapter * adapter,u8 cch,u8 bw)41 static inline int rtw_nlrtw_radar_detect_event(_adapter *adapter, u8 cch, u8 bw) {return _FAIL;}
rtw_nlrtw_cac_finish_event(_adapter * adapter,u8 cch,u8 bw)42 static inline int rtw_nlrtw_cac_finish_event(_adapter *adapter, u8 cch, u8 bw) {return _FAIL;}
rtw_nlrtw_cac_abort_event(_adapter * adapter,u8 cch,u8 bw)43 static inline int rtw_nlrtw_cac_abort_event(_adapter *adapter, u8 cch, u8 bw) {return _FAIL;}
rtw_nlrtw_nop_finish_event(_adapter * adapter,u8 cch,u8 bw)44 static inline int rtw_nlrtw_nop_finish_event(_adapter *adapter, u8 cch, u8 bw) {return _FAIL;}
rtw_nlrtw_nop_start_event(_adapter * adapter,u8 cch,u8 bw)45 static inline int rtw_nlrtw_nop_start_event(_adapter *adapter, u8 cch, u8 bw) {return _FAIL;}
46 #endif /* defined(CONFIG_RTW_NLRTW) && defined(CONFIG_DFS_MASTER) */
47
48 #endif /* __RTW_NLRTW_H_ */
49