hw_features.h
Go to the documentation of this file.00001
00017 #ifndef HW_FEATURES_H
00018 #define HW_FEATURES_H
00019
00020 #ifdef NEED_AP_MLME
00021 void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
00022 size_t num_hw_features);
00023 int hostapd_get_hw_features(struct hostapd_iface *iface);
00024 int hostapd_select_hw_mode(struct hostapd_iface *iface);
00025 const char * hostapd_hw_mode_txt(int mode);
00026 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan);
00027 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq);
00028 int hostapd_check_ht_capab(struct hostapd_iface *iface);
00029 #else
00030 static inline void
00031 hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
00032 size_t num_hw_features)
00033 {
00034 }
00035
00036 static inline int hostapd_get_hw_features(struct hostapd_iface *iface)
00037 {
00038 return -1;
00039 }
00040
00041 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
00042 {
00043 return -1;
00044 }
00045
00046 static inline const char * hostapd_hw_mode_txt(int mode)
00047 {
00048 return NULL;
00049 }
00050
00051 static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
00052 {
00053 return -1;
00054 }
00055
00056 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface)
00057 {
00058 return 0;
00059 }
00060
00061 #endif
00062
00063 #endif
00064