]>
Commit | Line | Data |
---|---|---|
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. | |
34445d12 | 5 | * Copyright (c) 2008-2011, Jouni Malinen <j@w1.fi> |
6fc6879b JM |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | * | |
11 | * Alternatively, this software may be distributed under the terms of BSD | |
12 | * license. | |
13 | * | |
14 | * See README and COPYING for more details. | |
15 | */ | |
16 | ||
17 | #ifndef HW_FEATURES_H | |
18 | #define HW_FEATURES_H | |
19 | ||
fe6bdb77 | 20 | #ifdef NEED_AP_MLME |
6fc6879b JM |
21 | void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features, |
22 | size_t num_hw_features); | |
23 | int hostapd_get_hw_features(struct hostapd_iface *iface); | |
ddaa83eb | 24 | int hostapd_select_hw_mode(struct hostapd_iface *iface); |
6fc6879b JM |
25 | const char * hostapd_hw_mode_txt(int mode); |
26 | int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan); | |
27 | int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq); | |
ad1e68e6 | 28 | int hostapd_check_ht_capab(struct hostapd_iface *iface); |
34445d12 | 29 | int hostapd_prepare_rates(struct hostapd_iface *iface, |
5a5009dc | 30 | struct hostapd_hw_modes *mode); |
fe6bdb77 | 31 | #else /* NEED_AP_MLME */ |
a9843f61 JM |
32 | static inline void |
33 | hostapd_free_hw_features(struct hostapd_hw_modes *hw_features, | |
34 | size_t num_hw_features) | |
35 | { | |
36 | } | |
37 | ||
38 | static inline int hostapd_get_hw_features(struct hostapd_iface *iface) | |
39 | { | |
40 | return -1; | |
41 | } | |
42 | ||
43 | static inline int hostapd_select_hw_mode(struct hostapd_iface *iface) | |
44 | { | |
60eda5e4 | 45 | return -100; |
a9843f61 JM |
46 | } |
47 | ||
ab61c4fc SD |
48 | static inline const char * hostapd_hw_mode_txt(int mode) |
49 | { | |
50 | return NULL; | |
51 | } | |
52 | ||
a9843f61 JM |
53 | static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) |
54 | { | |
55 | return -1; | |
56 | } | |
ad1e68e6 JM |
57 | |
58 | static inline int hostapd_check_ht_capab(struct hostapd_iface *iface) | |
59 | { | |
60 | return 0; | |
61 | } | |
62 | ||
210ff0f7 | 63 | static inline int hostapd_prepare_rates(struct hostapd_iface *iface, |
5a5009dc FF |
64 | struct hostapd_hw_modes *mode) |
65 | { | |
66 | return 0; | |
67 | } | |
68 | ||
fe6bdb77 | 69 | #endif /* NEED_AP_MLME */ |
6fc6879b JM |
70 | |
71 | #endif /* HW_FEATURES_H */ |