diff options
author | Edgardo Hames <ehames@gmail.com> | 2010-07-31 12:06:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-02 21:20:03 -0400 |
commit | 51e4896adad00a066fad65649405c1c9fa108157 (patch) | |
tree | 9788b9572f078e0f7f86e60fd17e10bbe7d0a7e3 /drivers/staging/wlan-ng/p80211conv.h | |
parent | 93df38e593d949de83a6447d016cc4b07d392f47 (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.h | 40 |
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 | ||
76 | typedef struct p80211_rxmeta { | 76 | struct 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 | ||
92 | typedef struct p80211_frmmeta { | 92 | struct 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 | ||
97 | void p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb); | 97 | void p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb); |
98 | int p80211skb_rxmeta_attach(struct wlandevice *wlandev, struct sk_buff *skb); | 98 | int 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 | */ |
104 | typedef struct p80211_caphdr { | 104 | struct 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 */ |
122 | typedef void (*freebuf_method_t) (void *buf, int size); | 122 | typedef void (*freebuf_method_t) (void *buf, int size); |
123 | 123 | ||
124 | typedef struct p80211_metawep { | 124 | struct 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 */ |
131 | typedef struct wlan_ethhdr { | 131 | struct 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 */ |
138 | typedef struct wlan_llc { | 138 | struct 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 */ |
145 | typedef struct wlan_snap { | 145 | struct 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 */ |
151 | struct wlandevice; | 151 | struct 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); |
155 | int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv, | 155 | int 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 | ||
159 | int p80211_stt_findproto(u16 proto); | 159 | int p80211_stt_findproto(u16 proto); |
160 | 160 | ||