2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* hostapd / Hardware feature query and different modes
|
|
|
|
* Copyright 2002-2003, Instant802 Networks, Inc.
|
|
|
|
* Copyright 2005-2006, Devicescape Software, Inc.
|
2011-12-03 11:20:17 +01:00
|
|
|
* Copyright (c) 2008-2011, Jouni Malinen <j@w1.fi>
|
2008-02-28 02:34:43 +01:00
|
|
|
*
|
2013-12-24 21:59:52 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-28 02:34:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HW_FEATURES_H
|
|
|
|
#define HW_FEATURES_H
|
|
|
|
|
2009-08-14 19:01:41 +02:00
|
|
|
#ifdef NEED_AP_MLME
|
2008-02-28 02:34:43 +01:00
|
|
|
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);
|
2008-11-21 19:39:33 +01:00
|
|
|
int hostapd_select_hw_mode(struct hostapd_iface *iface);
|
2008-02-28 02:34:43 +01:00
|
|
|
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);
|
2009-04-16 15:22:40 +02:00
|
|
|
int hostapd_check_ht_capab(struct hostapd_iface *iface);
|
2011-12-03 11:20:17 +01:00
|
|
|
int hostapd_prepare_rates(struct hostapd_iface *iface,
|
2010-11-09 15:17:50 +01:00
|
|
|
struct hostapd_hw_modes *mode);
|
2009-08-14 19:01:41 +02:00
|
|
|
#else /* NEED_AP_MLME */
|
2009-01-12 21:03:58 +01:00
|
|
|
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)
|
|
|
|
{
|
2011-05-16 21:01:11 +02:00
|
|
|
return -100;
|
2009-01-12 21:03:58 +01:00
|
|
|
}
|
|
|
|
|
2009-02-18 18:43:07 +01:00
|
|
|
static inline const char * hostapd_hw_mode_txt(int mode)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2009-01-12 21:03:58 +01:00
|
|
|
static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
2009-04-16 15:22:40 +02:00
|
|
|
|
|
|
|
static inline int hostapd_check_ht_capab(struct hostapd_iface *iface)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2011-12-04 11:46:01 +01:00
|
|
|
static inline int hostapd_prepare_rates(struct hostapd_iface *iface,
|
2010-11-09 15:17:50 +01:00
|
|
|
struct hostapd_hw_modes *mode)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2009-08-14 19:01:41 +02:00
|
|
|
#endif /* NEED_AP_MLME */
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
#endif /* HW_FEATURES_H */
|