Added WirelessManager, a port of wpa_supplicant.
[AROS.git] / workbench / network / WirelessManager / src / ap / hw_features.h
blob0295549fe1d387ff1bef9ae21938a8f30c25af1c
1 /*
2 * hostapd / Hardware feature query and different modes
3 * Copyright 2002-2003, Instant802 Networks, Inc.
4 * Copyright 2005-2006, Devicescape Software, Inc.
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.
10 * Alternatively, this software may be distributed under the terms of BSD
11 * license.
13 * See README and COPYING for more details.
16 #ifndef HW_FEATURES_H
17 #define HW_FEATURES_H
19 #ifdef NEED_AP_MLME
20 void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
21 size_t num_hw_features);
22 int hostapd_get_hw_features(struct hostapd_iface *iface);
23 int hostapd_select_hw_mode(struct hostapd_iface *iface);
24 const char * hostapd_hw_mode_txt(int mode);
25 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan);
26 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq);
27 int hostapd_check_ht_capab(struct hostapd_iface *iface);
28 #else /* NEED_AP_MLME */
29 static inline void
30 hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
31 size_t num_hw_features)
35 static inline int hostapd_get_hw_features(struct hostapd_iface *iface)
37 return -1;
40 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
42 return -1;
45 static inline const char * hostapd_hw_mode_txt(int mode)
47 return NULL;
50 static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
52 return -1;
55 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface)
57 return 0;
60 #endif /* NEED_AP_MLME */
62 #endif /* HW_FEATURES_H */