wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
hw_features.h
Go to the documentation of this file.
1 
7 #ifndef HW_FEATURES_H
8 #define HW_FEATURES_H
9 
10 #ifdef NEED_AP_MLME
11 void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
12  size_t num_hw_features);
13 int hostapd_get_hw_features(struct hostapd_iface *iface);
14 int hostapd_acs_completed(struct hostapd_iface *iface, int err);
15 int hostapd_select_hw_mode(struct hostapd_iface *iface);
16 const char * hostapd_hw_mode_txt(int mode);
17 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan);
18 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq);
19 int hostapd_check_ht_capab(struct hostapd_iface *iface);
20 int hostapd_prepare_rates(struct hostapd_iface *iface,
21  struct hostapd_hw_modes *mode);
22 void hostapd_stop_setup_timers(struct hostapd_iface *iface);
23 #else /* NEED_AP_MLME */
24 static inline void
25 hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
26  size_t num_hw_features)
27 {
28 }
29 
30 static inline int hostapd_get_hw_features(struct hostapd_iface *iface)
31 {
32  return -1;
33 }
34 
35 static inline int hostapd_acs_completed(struct hostapd_iface *iface, int err)
36 {
37  return -1;
38 }
39 
40 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
41 {
42  return -100;
43 }
44 
45 static inline const char * hostapd_hw_mode_txt(int mode)
46 {
47  return NULL;
48 }
49 
50 static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
51 {
52  return -1;
53 }
54 
55 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface)
56 {
57  return 0;
58 }
59 
60 static inline int hostapd_prepare_rates(struct hostapd_iface *iface,
61  struct hostapd_hw_modes *mode)
62 {
63  return 0;
64 }
65 
66 static inline void hostapd_stop_setup_timers(struct hostapd_iface *iface)
67 {
68 }
69 
70 #endif /* NEED_AP_MLME */
71 
72 #endif /* HW_FEATURES_H */
hostapd per-interface data structure
Definition: hostapd.h:291
Supported hardware mode information.
Definition: driver.h:132
int hostapd_select_hw_mode(struct hostapd_iface *iface)
Select the hardware mode.
Definition: hw_features.c:897
hostapd per-BSS data structure
Definition: hostapd.h:103