4 struct hostap_ieee80211_hdr {
12 } __attribute__ ((packed));
15 struct hostap_ieee80211_mgmt {
27 /* possibly followed by Challenge text */
29 } __attribute__ ((packed)) auth;
32 } __attribute__ ((packed)) deauth;
36 /* followed by SSID and Supported rates */
38 } __attribute__ ((packed)) assoc_req;
43 /* followed by Supported rates */
45 } __attribute__ ((packed)) assoc_resp, reassoc_resp;
50 /* followed by SSID and Supported rates */
52 } __attribute__ ((packed)) reassoc_req;
55 } __attribute__ ((packed)) disassoc;
57 } __attribute__ ((packed)) probe_req;
62 /* followed by some of SSID, Supported rates,
63 * FH Params, DS Params, CF Params, IBSS Params, TIM */
65 } __attribute__ ((packed)) beacon, probe_resp;
67 } __attribute__ ((packed));
70 #define IEEE80211_MGMT_HDR_LEN 24
71 #define IEEE80211_DATA_HDR3_LEN 24
72 #define IEEE80211_DATA_HDR4_LEN 30
75 struct hostap_80211_rx_status {
79 u16 rate; /* in 100 kbps */
83 void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
84 struct hostap_80211_rx_status *rx_stats);
87 /* prism2_rx_80211 'type' argument */
89 PRISM2_RX_MONITOR, PRISM2_RX_MGMT, PRISM2_RX_NON_ASSOC,
90 PRISM2_RX_NULLFUNC_ACK
93 int prism2_rx_80211(struct net_device *dev, struct sk_buff *skb,
94 struct hostap_80211_rx_status *rx_stats, int type);
95 void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
96 struct hostap_80211_rx_status *rx_stats);
97 void hostap_dump_rx_80211(const char *name, struct sk_buff *skb,
98 struct hostap_80211_rx_status *rx_stats);
100 void hostap_dump_tx_80211(const char *name, struct sk_buff *skb);
101 int hostap_data_start_xmit(struct sk_buff *skb, struct net_device *dev);
102 int hostap_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev);
103 struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb,
104 struct prism2_crypt_data *crypt);
105 int hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev);
107 #endif /* HOSTAP_80211_H */