1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
6 #include <linux/skbuff.h>
7 #include <linux/netdevice.h>
9 struct hostap_ieee80211_mgmt
{
19 __le16 auth_transaction
;
21 /* possibly followed by Challenge text */
29 __le16 listen_interval
;
30 /* followed by SSID and Supported rates */
37 /* followed by Supported rates */
39 } __packed assoc_resp
, reassoc_resp
;
42 __le16 listen_interval
;
44 /* followed by SSID and Supported rates */
46 } __packed reassoc_req
;
56 /* followed by some of SSID, Supported rates,
57 * FH Params, DS Params, CF Params, IBSS Params, TIM */
59 } __packed beacon
, probe_resp
;
64 #define IEEE80211_MGMT_HDR_LEN 24
65 #define IEEE80211_DATA_HDR3_LEN 24
66 #define IEEE80211_DATA_HDR4_LEN 30
69 struct hostap_80211_rx_status
{
73 u16 rate
; /* in 100 kbps */
76 /* prism2_rx_80211 'type' argument */
78 PRISM2_RX_MONITOR
, PRISM2_RX_MGMT
, PRISM2_RX_NON_ASSOC
,
79 PRISM2_RX_NULLFUNC_ACK
82 int prism2_rx_80211(struct net_device
*dev
, struct sk_buff
*skb
,
83 struct hostap_80211_rx_status
*rx_stats
, int type
);
84 void hostap_80211_rx(struct net_device
*dev
, struct sk_buff
*skb
,
85 struct hostap_80211_rx_status
*rx_stats
);
86 void hostap_dump_rx_80211(const char *name
, struct sk_buff
*skb
,
87 struct hostap_80211_rx_status
*rx_stats
);
89 void hostap_dump_tx_80211(const char *name
, struct sk_buff
*skb
);
90 netdev_tx_t
hostap_data_start_xmit(struct sk_buff
*skb
,
91 struct net_device
*dev
);
92 netdev_tx_t
hostap_mgmt_start_xmit(struct sk_buff
*skb
,
93 struct net_device
*dev
);
94 netdev_tx_t
hostap_master_start_xmit(struct sk_buff
*skb
,
95 struct net_device
*dev
);
97 #endif /* HOSTAP_80211_H */