Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hostap_80211.h
Go to the documentation of this file.
1 #ifndef HOSTAP_80211_H
2 #define HOSTAP_80211_H
3 
4 #include <linux/types.h>
5 #include <linux/skbuff.h>
6 #include <linux/netdevice.h>
7 
11  u8 da[6];
12  u8 sa[6];
13  u8 bssid[6];
15  union {
16  struct {
20  /* possibly followed by Challenge text */
22  } __packed auth;
23  struct {
25  } __packed deauth;
26  struct {
29  /* followed by SSID and Supported rates */
30  u8 variable[0];
32  struct {
36  /* followed by Supported rates */
37  u8 variable[0];
39  struct {
43  /* followed by SSID and Supported rates */
44  u8 variable[0];
46  struct {
49  struct {
51  struct {
55  /* followed by some of SSID, Supported rates,
56  * FH Params, DS Params, CF Params, IBSS Params, TIM */
57  u8 variable[0];
59  } u;
60 } __packed;
61 
62 
63 #define IEEE80211_MGMT_HDR_LEN 24
64 #define IEEE80211_DATA_HDR3_LEN 24
65 #define IEEE80211_DATA_HDR4_LEN 30
66 
67 
72  u16 rate; /* in 100 kbps */
73 };
74 
75 /* prism2_rx_80211 'type' argument */
76 enum {
79 };
80 
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,
85 void hostap_dump_rx_80211(const char *name, struct sk_buff *skb,
87 
88 void hostap_dump_tx_80211(const char *name, struct sk_buff *skb);
90  struct net_device *dev);
92  struct net_device *dev);
94  struct net_device *dev);
95 
96 #endif /* HOSTAP_80211_H */