123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #ifndef AP_H
- #define AP_H
- #define WLAN_STA_AUTH BIT(0)
- #define WLAN_STA_ASSOC BIT(1)
- #define WLAN_STA_PS BIT(2)
- #define WLAN_STA_TIM BIT(3)
- #define WLAN_STA_PERM BIT(4)
- #define WLAN_STA_AUTHORIZED BIT(5)
- #define WLAN_STA_PENDING_POLL BIT(6)
- #define WLAN_STA_SHORT_PREAMBLE BIT(7)
- #define WLAN_STA_PREAUTH BIT(8)
- #define WLAN_STA_WME BIT(9)
- #define WLAN_STA_NONERP BIT(31)
- #define WLAN_SUPP_RATES_MAX 32
- struct sta_info {
- struct sta_info *next;
- struct sta_info *hnext;
- u8 addr[6];
- u16 aid;
- u32 flags;
- u16 capability;
- u16 listen_interval;
- u8 supported_rates[WLAN_SUPP_RATES_MAX];
- int supported_rates_len;
- unsigned int nonerp_set:1;
- unsigned int no_short_slot_time_set:1;
- unsigned int no_short_preamble_set:1;
- u16 auth_alg;
- u8 previous_ap[6];
- enum {
- STA_NULLFUNC = 0, STA_DISASSOC, STA_DEAUTH, STA_REMOVE
- } timeout_next;
-
- struct eapol_state_machine *eapol_sm;
-
- struct ieee80211_mgmt *last_assoc_req;
- u32 acct_session_id_hi;
- u32 acct_session_id_lo;
- time_t acct_session_start;
- int acct_session_started;
- int acct_terminate_cause;
- int acct_interim_interval;
- unsigned long last_rx_bytes;
- unsigned long last_tx_bytes;
- u32 acct_input_gigawords;
- u32 acct_output_gigawords;
- u8 *challenge;
- struct wpa_state_machine *wpa_sm;
- struct rsn_preauth_interface *preauth_iface;
- struct hostapd_ssid *ssid;
- struct hostapd_ssid *ssid_probe;
- int vlan_id;
- };
- #define MAX_AID_TABLE_SIZE 128
- #define STA_HASH_SIZE 256
- #define STA_HASH(sta) (sta[5])
- #define AP_MAX_INACTIVITY (5 * 60)
- #define AP_DISASSOC_DELAY (1)
- #define AP_DEAUTH_DELAY (1)
- #define AP_MAX_INACTIVITY_AFTER_DISASSOC (1 * 30)
- #define AP_MAX_INACTIVITY_AFTER_DEAUTH (1 * 5)
- #endif
|