5 struct ieee80211_mgmt
{
17 /* possibly followed by Challenge text */
19 } __attribute__ ((packed
)) auth
;
22 } __attribute__ ((packed
)) deauth
;
26 /* followed by SSID and Supported rates */
28 } __attribute__ ((packed
)) assoc_req
;
33 /* followed by Supported rates */
35 } __attribute__ ((packed
)) assoc_resp
, reassoc_resp
;
40 /* followed by SSID and Supported rates */
42 } __attribute__ ((packed
)) reassoc_req
;
45 } __attribute__ ((packed
)) disassoc
;
50 /* followed by some of SSID, Supported rates,
51 * FH Params, DS Params, CF Params, IBSS Params, TIM */
53 } __attribute__ ((packed
)) beacon
;
55 } __attribute__ ((packed
));
58 /* Parsed Information Elements */
59 struct ieee802_11_elems
{
82 typedef enum { ParseOK
= 0, ParseUnknown
= 1, ParseFailed
= -1 } ParseRes
;
85 void ieee802_11_mgmt(struct hostapd_data
*hapd
, u8
*buf
, size_t len
,
87 void ieee802_11_mgmt_cb(struct hostapd_data
*hapd
, u8
*buf
, size_t len
,
89 ParseRes
ieee802_11_parse_elems(struct hostapd_data
*hapd
, u8
*start
,
91 struct ieee802_11_elems
*elems
,
93 void ieee80211_michael_mic_failure(struct hostapd_data
*hapd
, u8
*addr
,
95 int ieee802_11_get_mib(struct hostapd_data
*hapd
, char *buf
, size_t buflen
);
96 int ieee802_11_get_mib_sta(struct hostapd_data
*hapd
, struct sta_info
*sta
,
97 char *buf
, size_t buflen
);
99 #endif /* IEEE802_11_H */