]> git.ipfire.org Git - thirdparty/hostap.git/blame - hostapd/hw_features.h
Replace NEED_MLME with NEED_AP_MLME
[thirdparty/hostap.git] / hostapd / hw_features.h
CommitLineData
6fc6879b
JM
1/*
2 * hostapd / Hardware feature query and different modes
3 * Copyright 2002-2003, Instant802 Networks, Inc.
4 * Copyright 2005-2006, Devicescape Software, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Alternatively, this software may be distributed under the terms of BSD
11 * license.
12 *
13 * See README and COPYING for more details.
14 */
15
16#ifndef HW_FEATURES_H
17#define HW_FEATURES_H
18
fe6bdb77 19#ifdef NEED_AP_MLME
6fc6879b
JM
20void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
21 size_t num_hw_features);
22int hostapd_get_hw_features(struct hostapd_iface *iface);
ddaa83eb 23int hostapd_select_hw_mode(struct hostapd_iface *iface);
6fc6879b
JM
24const char * hostapd_hw_mode_txt(int mode);
25int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan);
26int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq);
ad1e68e6 27int hostapd_check_ht_capab(struct hostapd_iface *iface);
fe6bdb77 28#else /* NEED_AP_MLME */
a9843f61
JM
29static inline void
30hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
31 size_t num_hw_features)
32{
33}
34
35static inline int hostapd_get_hw_features(struct hostapd_iface *iface)
36{
37 return -1;
38}
39
40static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
41{
42 return -1;
43}
44
ab61c4fc
SD
45static inline const char * hostapd_hw_mode_txt(int mode)
46{
47 return NULL;
48}
49
a9843f61
JM
50static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
51{
52 return -1;
53}
ad1e68e6
JM
54
55static inline int hostapd_check_ht_capab(struct hostapd_iface *iface)
56{
57 return 0;
58}
59
fe6bdb77 60#endif /* NEED_AP_MLME */
6fc6879b
JM
61
62#endif /* HW_FEATURES_H */