hw_features.h
Go to the documentation of this file.
00001 /*
00002  * hostapd / Hardware feature query and different modes
00003  * Copyright 2002-2003, Instant802 Networks, Inc.
00004  * Copyright 2005-2006, Devicescape Software, Inc.
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License version 2 as
00008  * published by the Free Software Foundation.
00009  *
00010  * Alternatively, this software may be distributed under the terms of BSD
00011  * license.
00012  *
00013  * See README and COPYING for more details.
00014  */
00015 
00016 #ifndef HW_FEATURES_H
00017 #define HW_FEATURES_H
00018 
00019 #ifdef NEED_AP_MLME
00020 void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
00021                               size_t num_hw_features);
00022 int hostapd_get_hw_features(struct hostapd_iface *iface);
00023 int hostapd_select_hw_mode(struct hostapd_iface *iface);
00024 const char * hostapd_hw_mode_txt(int mode);
00025 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan);
00026 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq);
00027 int hostapd_check_ht_capab(struct hostapd_iface *iface);
00028 #else /* NEED_AP_MLME */
00029 static inline void
00030 hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
00031                          size_t num_hw_features)
00032 {
00033 }
00034 
00035 static inline int hostapd_get_hw_features(struct hostapd_iface *iface)
00036 {
00037         return -1;
00038 }
00039 
00040 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
00041 {
00042         return -1;
00043 }
00044 
00045 static inline const char * hostapd_hw_mode_txt(int mode)
00046 {
00047         return NULL;
00048 }
00049 
00050 static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
00051 {
00052         return -1;
00053 }
00054 
00055 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface)
00056 {
00057         return 0;
00058 }
00059 
00060 #endif /* NEED_AP_MLME */
00061 
00062 #endif /* HW_FEATURES_H */


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:35