X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=hostapd%2Fap.h;h=98f8ee7449da24d18c09cb63fc65bcff64b2bab7;hb=fda90ab4b73b19d4638e8b7cd4c90458e51f9e3e;hp=383ecaf147b88abc016a4a2f17ce54bf85ce3d85;hpb=f3f7540edc24679ea5fac56480ba6017e4db5b0c;p=wpasupplicant diff --git a/hostapd/ap.h b/hostapd/ap.h index 383ecaf..98f8ee7 100644 --- a/hostapd/ap.h +++ b/hostapd/ap.h @@ -1,6 +1,7 @@ /* * hostapd / Station table data structures - * Copyright (c) 2002-2004, Jouni Malinen + * Copyright (c) 2002-2008, Jouni Malinen + * Copyright (c) 2007-2008, Intel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -15,6 +16,10 @@ #ifndef AP_H #define AP_H +#ifdef CONFIG_IEEE80211N +#include "ieee802_11_defs.h" +#endif /* CONFIG_IEEE80211N */ + /* STA flags */ #define WLAN_STA_AUTH BIT(0) #define WLAN_STA_ASSOC BIT(1) @@ -27,6 +32,9 @@ #define WLAN_STA_PREAUTH BIT(8) #define WLAN_STA_WME BIT(9) #define WLAN_STA_MFP BIT(10) +#define WLAN_STA_HT BIT(11) +#define WLAN_STA_WPS BIT(12) +#define WLAN_STA_MAYBE_WPS BIT(13) #define WLAN_STA_NONERP BIT(31) /* Maximum number of supported rates (from both Supported Rates and Extended @@ -48,6 +56,9 @@ struct sta_info { unsigned int nonerp_set:1; unsigned int no_short_slot_time_set:1; unsigned int no_short_preamble_set:1; + unsigned int no_ht_gf_set:1; + unsigned int no_ht_set:1; + unsigned int ht_20mhz_set:1; u16 auth_alg; u8 previous_ap[6]; @@ -83,6 +94,22 @@ struct sta_info { struct hostapd_ssid *ssid_probe; /* SSID selection based on ProbeReq */ int vlan_id; + +#ifdef CONFIG_IEEE80211N + struct ht_cap_ie ht_capabilities; /* IEEE 802.11n capabilities */ +#endif /* CONFIG_IEEE80211N */ + +#ifdef CONFIG_IEEE80211W + int sa_query_count; /* number of pending SA Query requests; + * 0 = no SA Query in progress */ + int sa_query_timed_out; + u8 *sa_query_trans_id; /* buffer of WLAN_SA_QUERY_TR_ID_LEN * + * sa_query_count octets of pending SA Query + * transaction identifiers */ + struct os_time sa_query_start; +#endif /* CONFIG_IEEE80211W */ + + struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ };