1214501Srpaulo/* 2214501Srpaulo * hostapd / Hardware feature query and different modes 3214501Srpaulo * Copyright 2002-2003, Instant802 Networks, Inc. 4214501Srpaulo * Copyright 2005-2006, Devicescape Software, Inc. 5214501Srpaulo * 6214501Srpaulo * This program is free software; you can redistribute it and/or modify 7214501Srpaulo * it under the terms of the GNU General Public License version 2 as 8214501Srpaulo * published by the Free Software Foundation. 9214501Srpaulo * 10214501Srpaulo * Alternatively, this software may be distributed under the terms of BSD 11214501Srpaulo * license. 12214501Srpaulo * 13214501Srpaulo * See README and COPYING for more details. 14214501Srpaulo */ 15214501Srpaulo 16214501Srpaulo#ifndef HW_FEATURES_H 17214501Srpaulo#define HW_FEATURES_H 18214501Srpaulo 19214501Srpaulo#ifdef NEED_AP_MLME 20214501Srpaulovoid hostapd_free_hw_features(struct hostapd_hw_modes *hw_features, 21214501Srpaulo size_t num_hw_features); 22214501Srpauloint hostapd_get_hw_features(struct hostapd_iface *iface); 23214501Srpauloint hostapd_select_hw_mode(struct hostapd_iface *iface); 24214501Srpauloconst char * hostapd_hw_mode_txt(int mode); 25214501Srpauloint hostapd_hw_get_freq(struct hostapd_data *hapd, int chan); 26214501Srpauloint hostapd_hw_get_channel(struct hostapd_data *hapd, int freq); 27214501Srpauloint hostapd_check_ht_capab(struct hostapd_iface *iface); 28214501Srpaulo#else /* NEED_AP_MLME */ 29214501Srpaulostatic inline void 30214501Srpaulohostapd_free_hw_features(struct hostapd_hw_modes *hw_features, 31214501Srpaulo size_t num_hw_features) 32214501Srpaulo{ 33214501Srpaulo} 34214501Srpaulo 35214501Srpaulostatic inline int hostapd_get_hw_features(struct hostapd_iface *iface) 36214501Srpaulo{ 37214501Srpaulo return -1; 38214501Srpaulo} 39214501Srpaulo 40214501Srpaulostatic inline int hostapd_select_hw_mode(struct hostapd_iface *iface) 41214501Srpaulo{ 42214501Srpaulo return -1; 43214501Srpaulo} 44214501Srpaulo 45214501Srpaulostatic inline const char * hostapd_hw_mode_txt(int mode) 46214501Srpaulo{ 47214501Srpaulo return NULL; 48214501Srpaulo} 49214501Srpaulo 50214501Srpaulostatic inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) 51214501Srpaulo{ 52214501Srpaulo return -1; 53214501Srpaulo} 54214501Srpaulo 55214501Srpaulostatic inline int hostapd_check_ht_capab(struct hostapd_iface *iface) 56214501Srpaulo{ 57214501Srpaulo return 0; 58214501Srpaulo} 59214501Srpaulo 60214501Srpaulo#endif /* NEED_AP_MLME */ 61214501Srpaulo 62214501Srpaulo#endif /* HW_FEATURES_H */ 63