wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ap_list.h
Go to the documentation of this file.
1 
7 #ifndef AP_LIST_H
8 #define AP_LIST_H
9 
10 struct ap_info {
11  /* Note: next/prev pointers are updated whenever a new beacon is
12  * received because these are used to find the least recently used
13  * entries. */
14  struct ap_info *next; /* next entry in AP list */
15  struct ap_info *prev; /* previous entry in AP list */
16  struct ap_info *hnext; /* next entry in hash table list */
17  u8 addr[6];
18  u8 supported_rates[WLAN_SUPP_RATES_MAX];
19  int erp; /* ERP Info or -1 if ERP info element not present */
20 
21  int channel;
22 
23  int ht_support;
24 
25  struct os_reltime last_beacon;
26 };
27 
28 struct ieee802_11_elems;
29 struct hostapd_frame_info;
30 
31 void ap_list_process_beacon(struct hostapd_iface *iface,
32  const struct ieee80211_mgmt *mgmt,
33  struct ieee802_11_elems *elems,
34  struct hostapd_frame_info *fi);
35 #ifdef NEED_AP_MLME
36 int ap_list_init(struct hostapd_iface *iface);
37 void ap_list_deinit(struct hostapd_iface *iface);
38 void ap_list_timer(struct hostapd_iface *iface);
39 #else /* NEED_AP_MLME */
40 static inline int ap_list_init(struct hostapd_iface *iface)
41 {
42  return 0;
43 }
44 
45 static inline void ap_list_deinit(struct hostapd_iface *iface)
46 {
47 }
48 
49 static inline void ap_list_timer(struct hostapd_iface *iface)
50 {
51 }
52 #endif /* NEED_AP_MLME */
53 
54 #endif /* AP_LIST_H */
hostapd per-interface data structure
Definition: hostapd.h:291
Definition: ap_list.h:10
Definition: hostapd.h:73
Definition: os.h:22
Definition: ieee802_11_common.h:19
Definition: ieee802_11_defs.h:464