]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/ap/dfs.h
DFS: Add new hostapd_is_dfs_overlap() helper
[thirdparty/hostap.git] / src / ap / dfs.h
CommitLineData
e76da505
JD
1/*
2 * DFS - Dynamic Frequency Selection
3 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
7cbb5f1a 4 * Copyright (c) 2013-2017, Qualcomm Atheros, Inc.
e76da505
JD
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
dc036d9e 12int hostapd_handle_dfs(struct hostapd_iface *iface);
e76da505 13
dc036d9e 14int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
58b73e3d
JD
15 int ht_enabled, int chan_offset, int chan_width,
16 int cf1, int cf2);
7cbb5f1a
VT
17int 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);
dc036d9e 20int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
58b73e3d
JD
21 int ht_enabled,
22 int chan_offset, int chan_width,
23 int cf1, int cf2);
dc036d9e 24int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
58b73e3d
JD
25 int ht_enabled,
26 int chan_offset, int chan_width, int cf1, int cf2);
3d7ad2f6 27int hostapd_is_dfs_required(struct hostapd_iface *iface);
79887673 28int hostapd_is_dfs_chan_available(struct hostapd_iface *iface);
c13578c3
AK
29int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
30 int ht_enabled, int chan_offset, int chan_width,
31 int cf1, int cf2);
32int hostapd_handle_dfs_offload(struct hostapd_iface *iface);
683e7c75
SM
33int hostapd_is_dfs_overlap(struct hostapd_iface *iface, enum chan_width width,
34 int center_freq);
58b73e3d 35
e76da505 36#endif /* DFS_H */