4 #include <linux/types.h>
5 #include <linux/skbuff.h>
6 #include <linux/netdevice.h>
8 struct hostap_ieee80211_mgmt
{
18 __le16 auth_transaction
;
20 /* possibly followed by Challenge text */
28 __le16 listen_interval
;
29 /* followed by SSID and Supported rates */
36 /* followed by Supported rates */
38 } __packed assoc_resp
, reassoc_resp
;
41 __le16 listen_interval
;
43 /* followed by SSID and Supported rates */
45 } __packed reassoc_req
;
55 /* followed by some of SSID, Supported rates,
56 * FH Params, DS Params, CF Params, IBSS Params, TIM */
58 } __packed beacon
, probe_resp
;
63 #define IEEE80211_MGMT_HDR_LEN 24
64 #define IEEE80211_DATA_HDR3_LEN 24
65 #define IEEE80211_DATA_HDR4_LEN 30
68 struct hostap_80211_rx_status
{
72 u16 rate
; /* in 100 kbps */
75 /* prism2_rx_80211 'type' argument */
77 PRISM2_RX_MONITOR
, PRISM2_RX_MGMT
, PRISM2_RX_NON_ASSOC
,
78 PRISM2_RX_NULLFUNC_ACK
81 int prism2_rx_80211(struct net_device
*dev
, struct sk_buff
*skb
,
82 struct hostap_80211_rx_status
*rx_stats
, int type
);
83 void hostap_80211_rx(struct net_device
*dev
, struct sk_buff
*skb
,
84 struct hostap_80211_rx_status
*rx_stats
);
85 void hostap_dump_rx_80211(const char *name
, struct sk_buff
*skb
,
86 struct hostap_80211_rx_status
*rx_stats
);
88 void hostap_dump_tx_80211(const char *name
, struct sk_buff
*skb
);
89 netdev_tx_t
hostap_data_start_xmit(struct sk_buff
*skb
,
90 struct net_device
*dev
);
91 netdev_tx_t
hostap_mgmt_start_xmit(struct sk_buff
*skb
,
92 struct net_device
*dev
);
93 netdev_tx_t
hostap_master_start_xmit(struct sk_buff
*skb
,
94 struct net_device
*dev
);
96 #endif /* HOSTAP_80211_H */