1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef HW_FEATURES_H
- #define HW_FEATURES_H
- #ifdef NEED_AP_MLME
- void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
- size_t num_hw_features);
- int hostapd_get_hw_features(struct hostapd_iface *iface);
- int hostapd_select_hw_mode(struct hostapd_iface *iface);
- const char * hostapd_hw_mode_txt(int mode);
- int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan);
- int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq);
- int hostapd_check_ht_capab(struct hostapd_iface *iface);
- #else
- static inline void
- hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
- size_t num_hw_features)
- {
- }
- static inline int hostapd_get_hw_features(struct hostapd_iface *iface)
- {
- return -1;
- }
- static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
- {
- return -1;
- }
- static inline const char * hostapd_hw_mode_txt(int mode)
- {
- return NULL;
- }
- static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
- {
- return -1;
- }
- static inline int hostapd_check_ht_capab(struct hostapd_iface *iface)
- {
- return 0;
- }
- #endif
- #endif
|