Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 1 | /* |
| 2 | * DFS - Dynamic Frequency Selection |
| 3 | * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi> |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 4 | * Copyright (c) 2013-2017, Qualcomm Atheros, Inc. |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 5 | * |
| 6 | * This software may be distributed under the terms of the BSD license. |
| 7 | * See README for more details. |
| 8 | */ |
| 9 | #ifndef DFS_H |
| 10 | #define DFS_H |
| 11 | |
Dmitry Shmidt | cce0666 | 2013-11-04 18:44:24 -0800 | [diff] [blame] | 12 | int hostapd_handle_dfs(struct hostapd_iface *iface); |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 13 | |
Dmitry Shmidt | cce0666 | 2013-11-04 18:44:24 -0800 | [diff] [blame] | 14 | int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 15 | int ht_enabled, int chan_offset, int chan_width, |
| 16 | int cf1, int cf2); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 17 | int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq, |
| 18 | int ht_enabled, int chan_offset, int chan_width, |
| 19 | int cf1, int cf2); |
Dmitry Shmidt | cce0666 | 2013-11-04 18:44:24 -0800 | [diff] [blame] | 20 | int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq, |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 21 | int ht_enabled, |
| 22 | int chan_offset, int chan_width, |
| 23 | int cf1, int cf2); |
Dmitry Shmidt | cce0666 | 2013-11-04 18:44:24 -0800 | [diff] [blame] | 24 | int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 25 | int ht_enabled, |
| 26 | int chan_offset, int chan_width, int cf1, int cf2); |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 27 | int hostapd_is_dfs_required(struct hostapd_iface *iface); |
Dmitry Shmidt | 203eadb | 2015-03-05 14:16:04 -0800 | [diff] [blame] | 28 | int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, |
| 29 | int ht_enabled, int chan_offset, int chan_width, |
| 30 | int cf1, int cf2); |
| 31 | int hostapd_handle_dfs_offload(struct hostapd_iface *iface); |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 32 | |
| 33 | #endif /* DFS_H */ |