]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/common/hw_features_common.h
Make check_20mhz_bss common
[thirdparty/hostap.git] / src / common / hw_features_common.h
CommitLineData
269dfe23
JD
1/*
2 * Common hostapd/wpa_supplicant HW features
3 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
4 * Copyright (c) 2015, Qualcomm Atheros, Inc.
5 *
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
8 */
9
10#ifndef HW_FEATURES_COMMON_H
11#define HW_FEATURES_COMMON_H
12
13#include "drivers/driver.h"
14
15struct hostapd_channel_data * hw_get_channel_chan(struct hostapd_hw_modes *mode,
16 int chan, int *freq);
17struct hostapd_channel_data * hw_get_channel_freq(struct hostapd_hw_modes *mode,
18 int freq, int *chan);
19
20int hw_get_freq(struct hostapd_hw_modes *mode, int chan);
21int hw_get_chan(struct hostapd_hw_modes *mode, int freq);
22
51442743
JD
23int allowed_ht40_channel_pair(struct hostapd_hw_modes *mode, int pri_chan,
24 int sec_chan);
6d5d098f 25void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan);
0e550fe4
JD
26int check_40mhz_5g(struct hostapd_hw_modes *mode,
27 struct wpa_scan_results *scan_res, int pri_chan,
28 int sec_chan);
fdd989d1 29int check_20mhz_bss(struct wpa_scan_res *bss, int pri_freq, int start, int end);
51442743 30
269dfe23 31#endif /* HW_FEATURES_COMMON_H */