4 #include <linux/types.h>
5 #include <net/ieee80211_crypt.h>
7 struct hostap_ieee80211_mgmt
{
17 __le16 auth_transaction
;
19 /* possibly followed by Challenge text */
21 } __attribute__ ((packed
)) auth
;
24 } __attribute__ ((packed
)) deauth
;
27 __le16 listen_interval
;
28 /* followed by SSID and Supported rates */
30 } __attribute__ ((packed
)) assoc_req
;
35 /* followed by Supported rates */
37 } __attribute__ ((packed
)) assoc_resp
, reassoc_resp
;
40 __le16 listen_interval
;
42 /* followed by SSID and Supported rates */
44 } __attribute__ ((packed
)) reassoc_req
;
47 } __attribute__ ((packed
)) disassoc
;
49 } __attribute__ ((packed
)) probe_req
;
54 /* followed by some of SSID, Supported rates,
55 * FH Params, DS Params, CF Params, IBSS Params, TIM */
57 } __attribute__ ((packed
)) beacon
, probe_resp
;
59 } __attribute__ ((packed
));
62 #define IEEE80211_MGMT_HDR_LEN 24
63 #define IEEE80211_DATA_HDR3_LEN 24
64 #define IEEE80211_DATA_HDR4_LEN 30
67 struct hostap_80211_rx_status
{
71 u16 rate
; /* in 100 kbps */
74 /* prism2_rx_80211 'type' argument */
76 PRISM2_RX_MONITOR
, PRISM2_RX_MGMT
, PRISM2_RX_NON_ASSOC
,
77 PRISM2_RX_NULLFUNC_ACK
80 int prism2_rx_80211(struct net_device
*dev
, struct sk_buff
*skb
,
81 struct hostap_80211_rx_status
*rx_stats
, int type
);
82 void hostap_80211_rx(struct net_device
*dev
, struct sk_buff
*skb
,
83 struct hostap_80211_rx_status
*rx_stats
);
84 void hostap_dump_rx_80211(const char *name
, struct sk_buff
*skb
,
85 struct hostap_80211_rx_status
*rx_stats
);
87 void hostap_dump_tx_80211(const char *name
, struct sk_buff
*skb
);
88 int hostap_data_start_xmit(struct sk_buff
*skb
, struct net_device
*dev
);
89 int hostap_mgmt_start_xmit(struct sk_buff
*skb
, struct net_device
*dev
);
90 int hostap_master_start_xmit(struct sk_buff
*skb
, struct net_device
*dev
);
92 #endif /* HOSTAP_80211_H */