aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/p80211conv.h
diff options
context:
space:
mode:
authorEdgardo Hames <ehames@gmail.com>2010-07-31 12:06:52 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-02 21:20:03 -0400
commit51e4896adad00a066fad65649405c1c9fa108157 (patch)
tree9788b9572f078e0f7f86e60fd17e10bbe7d0a7e3 /drivers/staging/wlan-ng/p80211conv.h
parent93df38e593d949de83a6447d016cc4b07d392f47 (diff)
Staging: wlan-ng: fix style issues in p80211conv.h
This patch removes typedefs in p80211conv.h. Signed-off-by: Edgardo Hames <ehames@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211conv.h')
-rw-r--r--drivers/staging/wlan-ng/p80211conv.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/staging/wlan-ng/p80211conv.h b/drivers/staging/wlan-ng/p80211conv.h
index 65ab2115df1..eca0391c676 100644
--- a/drivers/staging/wlan-ng/p80211conv.h
+++ b/drivers/staging/wlan-ng/p80211conv.h
@@ -63,17 +63,17 @@
63 63
64#define P80211CAPTURE_VERSION 0x80211001 64#define P80211CAPTURE_VERSION 0x80211001
65 65
66#define P80211_FRMMETA_MAGIC 0x802110 66#define P80211_FRMMETA_MAGIC 0x802110
67 67
68#define P80211SKB_FRMMETA(s) \ 68#define P80211SKB_FRMMETA(s) \
69 (((((p80211_frmmeta_t *)((s)->cb))->magic) == P80211_FRMMETA_MAGIC) ? \ 69 (((((struct p80211_frmmeta *)((s)->cb))->magic) == P80211_FRMMETA_MAGIC) ? \
70 ((p80211_frmmeta_t *)((s)->cb)) : \ 70 ((struct p80211_frmmeta *)((s)->cb)) : \
71 (NULL)) 71 (NULL))
72 72
73#define P80211SKB_RXMETA(s) \ 73#define P80211SKB_RXMETA(s) \
74 (P80211SKB_FRMMETA((s)) ? P80211SKB_FRMMETA((s))->rx : ((p80211_rxmeta_t *)(NULL))) 74 (P80211SKB_FRMMETA((s)) ? P80211SKB_FRMMETA((s))->rx : ((struct p80211_rxmeta *)(NULL)))
75 75
76typedef struct p80211_rxmeta { 76struct p80211_rxmeta {
77 struct wlandevice *wlandev; 77 struct wlandevice *wlandev;
78 78
79 u64 mactime; /* Hi-rez MAC-supplied time value */ 79 u64 mactime; /* Hi-rez MAC-supplied time value */
@@ -87,12 +87,12 @@ typedef struct p80211_rxmeta {
87 unsigned int preamble; /* P80211ENUM_preambletype_* */ 87 unsigned int preamble; /* P80211ENUM_preambletype_* */
88 unsigned int encoding; /* P80211ENUM_encoding_* */ 88 unsigned int encoding; /* P80211ENUM_encoding_* */
89 89
90} p80211_rxmeta_t; 90};
91 91
92typedef struct p80211_frmmeta { 92struct p80211_frmmeta {
93 unsigned int magic; 93 unsigned int magic;
94 p80211_rxmeta_t *rx; 94 struct p80211_rxmeta *rx;
95} p80211_frmmeta_t; 95};
96 96
97void p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb); 97void p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb);
98int p80211skb_rxmeta_attach(struct wlandevice *wlandev, struct sk_buff *skb); 98int p80211skb_rxmeta_attach(struct wlandevice *wlandev, struct sk_buff *skb);
@@ -101,7 +101,7 @@ void p80211skb_rxmeta_detach(struct sk_buff *skb);
101/* 101/*
102 * Frame capture header. (See doc/capturefrm.txt) 102 * Frame capture header. (See doc/capturefrm.txt)
103 */ 103 */
104typedef struct p80211_caphdr { 104struct p80211_caphdr {
105 u32 version; 105 u32 version;
106 u32 length; 106 u32 length;
107 u64 mactime; 107 u64 mactime;
@@ -116,36 +116,36 @@ typedef struct p80211_caphdr {
116 s32 ssi_noise; 116 s32 ssi_noise;
117 u32 preamble; 117 u32 preamble;
118 u32 encoding; 118 u32 encoding;
119} p80211_caphdr_t; 119};
120 120
121/* buffer free method pointer type */ 121/* buffer free method pointer type */
122typedef void (*freebuf_method_t) (void *buf, int size); 122typedef void (*freebuf_method_t) (void *buf, int size);
123 123
124typedef struct p80211_metawep { 124struct p80211_metawep {
125 void *data; 125 void *data;
126 u8 iv[4]; 126 u8 iv[4];
127 u8 icv[4]; 127 u8 icv[4];
128} p80211_metawep_t; 128};
129 129
130/* local ether header type */ 130/* local ether header type */
131typedef struct wlan_ethhdr { 131struct wlan_ethhdr {
132 u8 daddr[WLAN_ETHADDR_LEN]; 132 u8 daddr[WLAN_ETHADDR_LEN];
133 u8 saddr[WLAN_ETHADDR_LEN]; 133 u8 saddr[WLAN_ETHADDR_LEN];
134 u16 type; 134 u16 type;
135} __attribute__ ((packed)) wlan_ethhdr_t; 135} __attribute__ ((packed));
136 136
137/* local llc header type */ 137/* local llc header type */
138typedef struct wlan_llc { 138struct wlan_llc {
139 u8 dsap; 139 u8 dsap;
140 u8 ssap; 140 u8 ssap;
141 u8 ctl; 141 u8 ctl;
142} __attribute__ ((packed)) wlan_llc_t; 142} __attribute__ ((packed));
143 143
144/* local snap header type */ 144/* local snap header type */
145typedef struct wlan_snap { 145struct wlan_snap {
146 u8 oui[WLAN_IEEE_OUI_LEN]; 146 u8 oui[WLAN_IEEE_OUI_LEN];
147 u16 type; 147 u16 type;
148} __attribute__ ((packed)) wlan_snap_t; 148} __attribute__ ((packed));
149 149
150/* Circular include trick */ 150/* Circular include trick */
151struct wlandevice; 151struct wlandevice;
@@ -154,7 +154,7 @@ int skb_p80211_to_ether(struct wlandevice *wlandev, u32 ethconv,
154 struct sk_buff *skb); 154 struct sk_buff *skb);
155int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv, 155int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv,
156 struct sk_buff *skb, union p80211_hdr *p80211_hdr, 156 struct sk_buff *skb, union p80211_hdr *p80211_hdr,
157 p80211_metawep_t *p80211_wep); 157 struct p80211_metawep *p80211_wep);
158 158
159int p80211_stt_findproto(u16 proto); 159int p80211_stt_findproto(u16 proto);
160 160