16 #define WLAN_STA_AUTH BIT(0)
17 #define WLAN_STA_ASSOC BIT(1)
18 #define WLAN_STA_AUTHORIZED BIT(5)
19 #define WLAN_STA_PENDING_POLL BIT(6)
20 #define WLAN_STA_SHORT_PREAMBLE BIT(7)
21 #define WLAN_STA_PREAUTH BIT(8)
22 #define WLAN_STA_WMM BIT(9)
23 #define WLAN_STA_MFP BIT(10)
24 #define WLAN_STA_HT BIT(11)
25 #define WLAN_STA_WPS BIT(12)
26 #define WLAN_STA_MAYBE_WPS BIT(13)
27 #define WLAN_STA_WDS BIT(14)
28 #define WLAN_STA_ASSOC_REQ_OK BIT(15)
29 #define WLAN_STA_WPS2 BIT(16)
30 #define WLAN_STA_GAS BIT(17)
31 #define WLAN_STA_VHT BIT(18)
32 #define WLAN_STA_WNM_SLEEP_MODE BIT(19)
33 #define WLAN_STA_VHT_OPMODE_ENABLED BIT(20)
34 #define WLAN_STA_VENDOR_VHT BIT(21)
35 #define WLAN_STA_PENDING_DISASSOC_CB BIT(29)
36 #define WLAN_STA_PENDING_DEAUTH_CB BIT(30)
37 #define WLAN_STA_NONERP BIT(31)
41 #define WLAN_SUPP_RATES_MAX 32
54 u8 supported_rates[WLAN_SUPP_RATES_MAX];
55 int supported_rates_len;
59 enum mesh_plink_state plink_state;
72 unsigned int nonerp_set:1;
73 unsigned int no_short_slot_time_set:1;
74 unsigned int no_short_preamble_set:1;
75 unsigned int no_ht_gf_set:1;
76 unsigned int no_ht_set:1;
77 unsigned int ht40_intolerant_set:1;
78 unsigned int ht_20mhz_set:1;
79 unsigned int no_p2p_set:1;
80 unsigned int qos_map_enabled:1;
81 unsigned int remediation:1;
82 unsigned int hs20_deauth_requested:1;
83 unsigned int session_timeout_set:1;
84 unsigned int radius_das_match:1;
89 STA_NULLFUNC = 0, STA_DISASSOC, STA_DEAUTH, STA_REMOVE,
99 u32 acct_session_id_hi;
100 u32 acct_session_id_lo;
102 int acct_session_started;
103 int acct_terminate_cause;
104 int acct_interim_interval;
106 unsigned long last_rx_bytes;
107 unsigned long last_tx_bytes;
108 u32 acct_input_gigawords;
109 u32 acct_output_gigawords;
114 struct rsn_preauth_interface *preauth_iface;
128 #ifdef CONFIG_IEEE80211W
131 int sa_query_timed_out;
132 u8 *sa_query_trans_id;
138 #ifdef CONFIG_INTERWORKING
139 #define GAS_DIALOG_MAX 8
147 u8 remediation_method;
148 char *remediation_url;
149 struct wpabuf *hs20_deauth_req;
150 char *hs20_session_info_url;
151 int hs20_disassoc_timer;
178 #define AP_MAX_INACTIVITY (5 * 60)
179 #define AP_DISASSOC_DELAY (1)
180 #define AP_DEAUTH_DELAY (1)
183 #define AP_MAX_INACTIVITY_AFTER_DISASSOC (1 * 30)
185 #define AP_MAX_INACTIVITY_AFTER_DEAUTH (1 * 5)
202 u32 session_timeout);
204 u32 session_timeout);
205 void ap_sta_no_session_timeout(
struct hostapd_data *hapd,
207 void ap_sta_session_warning_timeout(
struct hostapd_data *hapd,
208 struct sta_info *sta,
int warning_time);
223 const u8 *addr, u16 reason);
226 struct sta_info *sta,
int authorized);
227 static inline int ap_sta_is_authorized(
struct sta_info *sta)
229 return sta->flags & WLAN_STA_AUTHORIZED;
235 int ap_sta_flags_txt(u32 flags,
char *buf,
size_t buflen);
Definition: sta_info.h:44
Definition: wpa_auth_i.h:20
WPA Supplicant - Common definitions.
void ap_handle_timer(void *eloop_ctx, void *timeout_ctx)
Per STA timer handler.
Definition: sta_info.c:346
Definition: ieee802_11_defs.h:634
Definition: ap_config.h:124
Definition: ieee802_11_defs.h:668
Per-Supplicant Authenticator state machines.
Definition: eapol_auth_sm_i.h:40
Doubly-linked list.
Definition: list.h:12
Definition: gas_serv.h:41
Internal data for EAPOL state machines.
Definition: eapol_supp_sm.c:28
Internal WPA state machine data.
Definition: wpa_i.h:18
hostapd per-BSS data structure
Definition: hostapd.h:103