]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/ap/ap_list.h
FT: Remove unused pmk argument from wpa_auth_derive_ptk_ft()
[thirdparty/hostap.git] / src / ap / ap_list.h
CommitLineData
6fc6879b
JM
1/*
2 * hostapd / AP table
71b6ae14
TW
3 * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi>
4 * Copyright (c) 2003-2004, Instant802 Networks, Inc.
5 * Copyright (c) 2006, Devicescape Software, Inc.
6fc6879b 6 *
0f3d578e
JM
7 * This software may be distributed under the terms of the BSD license.
8 * See README for more details.
6fc6879b
JM
9 */
10
11#ifndef AP_LIST_H
12#define AP_LIST_H
13
14struct ap_info {
15 /* Note: next/prev pointers are updated whenever a new beacon is
16 * received because these are used to find the least recently used
08c99caf 17 * entries. */
6fc6879b
JM
18 struct ap_info *next; /* next entry in AP list */
19 struct ap_info *prev; /* previous entry in AP list */
20 struct ap_info *hnext; /* next entry in hash table list */
6fc6879b 21 u8 addr[6];
6fc6879b 22 u8 supported_rates[WLAN_SUPP_RATES_MAX];
6fc6879b
JM
23 int erp; /* ERP Info or -1 if ERP info element not present */
24
6fc6879b 25 int channel;
6fc6879b 26
de9289c8
JM
27 int ht_support;
28
100298e8 29 struct os_reltime last_beacon;
6fc6879b
JM
30};
31
32struct ieee802_11_elems;
33struct hostapd_frame_info;
34
6fc6879b 35void ap_list_process_beacon(struct hostapd_iface *iface,
b57e086c 36 const struct ieee80211_mgmt *mgmt,
6fc6879b
JM
37 struct ieee802_11_elems *elems,
38 struct hostapd_frame_info *fi);
fe6bdb77 39#ifdef NEED_AP_MLME
6fc6879b
JM
40int ap_list_init(struct hostapd_iface *iface);
41void ap_list_deinit(struct hostapd_iface *iface);
de744892 42void ap_list_timer(struct hostapd_iface *iface);
fe6bdb77 43#else /* NEED_AP_MLME */
9c584c06
JM
44static inline int ap_list_init(struct hostapd_iface *iface)
45{
46 return 0;
47}
48
49static inline void ap_list_deinit(struct hostapd_iface *iface)
50{
51}
de744892
JM
52
53static inline void ap_list_timer(struct hostapd_iface *iface)
54{
55}
fe6bdb77 56#endif /* NEED_AP_MLME */
6fc6879b
JM
57
58#endif /* AP_LIST_H */