hostapd
src
ap
ap_list.h
1
/*
2
* hostapd / AP table
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.
6
*
7
* This software may be distributed under the terms of the BSD license.
8
* See README for more details.
9
*/
10
11
#ifndef AP_LIST_H
12
#define AP_LIST_H
13
14
struct
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
17
* entries. */
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 */
21
u8 addr[6];
22
u8 supported_rates[WLAN_SUPP_RATES_MAX];
23
int
erp;
/* ERP Info or -1 if ERP info element not present */
24
25
int
channel;
26
27
int
ht_support;
28
29
struct
os_reltime
last_beacon;
30
};
31
32
struct
ieee802_11_elems
;
33
struct
hostapd_frame_info
;
34
35
void
ap_list_process_beacon(
struct
hostapd_iface
*iface,
36
const
struct
ieee80211_mgmt
*mgmt,
37
struct
ieee802_11_elems
*elems,
38
struct
hostapd_frame_info
*fi);
39
#ifdef NEED_AP_MLME
40
int
ap_list_init(
struct
hostapd_iface
*iface);
41
void
ap_list_deinit(
struct
hostapd_iface
*iface);
42
void
ap_list_timer(
struct
hostapd_iface
*iface);
43
#else
/* NEED_AP_MLME */
44
static
inline
int
ap_list_init(
struct
hostapd_iface
*iface)
45
{
46
return
0;
47
}
48
49
static
inline
void
ap_list_deinit(
struct
hostapd_iface
*iface)
50
{
51
}
52
53
static
inline
void
ap_list_timer(
struct
hostapd_iface
*iface)
54
{
55
}
56
#endif
/* NEED_AP_MLME */
57
58
#endif
/* AP_LIST_H */
hostapd_iface
struct hostapd_iface - hostapd per-interface data structure
Definition:
hostapd.h:322
ap_info
Definition:
ap_list.h:14
hostapd_frame_info
Definition:
hostapd.h:78
os_reltime
Definition:
os.h:26
ieee802_11_elems
Definition:
ieee802_11_common.h:25
ieee80211_mgmt
Definition:
ieee802_11_defs.h:770
Generated by
1.8.12