2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* hostapd / AP table
|
2008-08-22 08:15:05 +02:00
|
|
|
* Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi>
|
|
|
|
* Copyright (c) 2003-2004, Instant802 Networks, Inc.
|
|
|
|
* Copyright (c) 2006, Devicescape Software, Inc.
|
2008-02-28 02:34:43 +01:00
|
|
|
*
|
2012-02-11 15:46:35 +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 AP_LIST_H
|
|
|
|
#define AP_LIST_H
|
|
|
|
|
|
|
|
struct ap_info {
|
|
|
|
/* Note: next/prev pointers are updated whenever a new beacon is
|
|
|
|
* received because these are used to find the least recently used
|
2013-03-30 16:02:06 +01:00
|
|
|
* entries. */
|
2008-02-28 02:34:43 +01:00
|
|
|
struct ap_info *next; /* next entry in AP list */
|
|
|
|
struct ap_info *prev; /* previous entry in AP list */
|
|
|
|
struct ap_info *hnext; /* next entry in hash table list */
|
|
|
|
u8 addr[6];
|
|
|
|
u8 supported_rates[WLAN_SUPP_RATES_MAX];
|
|
|
|
int erp; /* ERP Info or -1 if ERP info element not present */
|
|
|
|
|
|
|
|
int channel;
|
|
|
|
|
2008-08-21 17:18:38 +02:00
|
|
|
int ht_support;
|
|
|
|
|
2011-04-11 17:33:48 +02:00
|
|
|
os_time_t last_beacon;
|
2008-02-28 02:34:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ieee802_11_elems;
|
|
|
|
struct hostapd_frame_info;
|
|
|
|
|
|
|
|
void ap_list_process_beacon(struct hostapd_iface *iface,
|
2009-12-13 22:25:30 +01:00
|
|
|
const struct ieee80211_mgmt *mgmt,
|
2008-02-28 02:34:43 +01:00
|
|
|
struct ieee802_11_elems *elems,
|
|
|
|
struct hostapd_frame_info *fi);
|
2009-08-14 19:01:41 +02:00
|
|
|
#ifdef NEED_AP_MLME
|
2008-02-28 02:34:43 +01:00
|
|
|
int ap_list_init(struct hostapd_iface *iface);
|
|
|
|
void ap_list_deinit(struct hostapd_iface *iface);
|
2009-08-14 19:01:41 +02:00
|
|
|
#else /* NEED_AP_MLME */
|
2009-01-08 17:40:14 +01:00
|
|
|
static inline int ap_list_init(struct hostapd_iface *iface)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void ap_list_deinit(struct hostapd_iface *iface)
|
|
|
|
{
|
|
|
|
}
|
2009-08-14 19:01:41 +02:00
|
|
|
#endif /* NEED_AP_MLME */
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
#endif /* AP_LIST_H */
|