diff options
author | Edgardo Hames <ehames@gmail.com> | 2010-07-30 21:51:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-02 21:20:03 -0400 |
commit | 93df38e593d949de83a6447d016cc4b07d392f47 (patch) | |
tree | fd94f28327575656aa99761d2b94342df3973ef8 | |
parent | 6487c49e8a739ae6020ccda9470f5837e792ab53 (diff) |
Staging: wlan-ng: fix style issues for p80211hdr.h
Removed typedef and other style issues.
Signed-off-by: Edgardo Hames <ehames@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/wlan-ng/hfa384x.h | 2 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/hfa384x_usb.c | 4 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211conv.c | 6 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211conv.h | 2 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211hdr.h | 24 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211mgmt.h | 24 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 12 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.h | 2 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/prism2sta.c | 4 |
9 files changed, 40 insertions, 40 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h index ab9bfaab8b6b..e3269f4b4fda 100644 --- a/drivers/staging/wlan-ng/hfa384x.h +++ b/drivers/staging/wlan-ng/hfa384x.h | |||
@@ -1409,7 +1409,7 @@ int hfa384x_drvr_start(hfa384x_t *hw); | |||
1409 | int hfa384x_drvr_stop(hfa384x_t *hw); | 1409 | int hfa384x_drvr_stop(hfa384x_t *hw); |
1410 | int | 1410 | int |
1411 | hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, | 1411 | hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, |
1412 | p80211_hdr_t *p80211_hdr, p80211_metawep_t *p80211_wep); | 1412 | union p80211_hdr *p80211_hdr, p80211_metawep_t *p80211_wep); |
1413 | void hfa384x_tx_timeout(wlandevice_t *wlandev); | 1413 | void hfa384x_tx_timeout(wlandevice_t *wlandev); |
1414 | 1414 | ||
1415 | int hfa384x_cmd_initialize(hfa384x_t *hw); | 1415 | int hfa384x_cmd_initialize(hfa384x_t *hw); |
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index 563017aaa363..925a7c50ba33 100644 --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c | |||
@@ -2706,7 +2706,7 @@ int hfa384x_drvr_stop(hfa384x_t *hw) | |||
2706 | * interrupt | 2706 | * interrupt |
2707 | ----------------------------------------------------------------*/ | 2707 | ----------------------------------------------------------------*/ |
2708 | int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, | 2708 | int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, |
2709 | p80211_hdr_t *p80211_hdr, | 2709 | union p80211_hdr *p80211_hdr, |
2710 | p80211_metawep_t *p80211_wep) | 2710 | p80211_metawep_t *p80211_wep) |
2711 | { | 2711 | { |
2712 | int usbpktlen = sizeof(hfa384x_tx_frame_t); | 2712 | int usbpktlen = sizeof(hfa384x_tx_frame_t); |
@@ -2752,7 +2752,7 @@ int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, | |||
2752 | 2752 | ||
2753 | /* copy the header over to the txdesc */ | 2753 | /* copy the header over to the txdesc */ |
2754 | memcpy(&(hw->txbuff.txfrm.desc.frame_control), p80211_hdr, | 2754 | memcpy(&(hw->txbuff.txfrm.desc.frame_control), p80211_hdr, |
2755 | sizeof(p80211_hdr_t)); | 2755 | sizeof(union p80211_hdr)); |
2756 | 2756 | ||
2757 | /* if we're using host WEP, increase size by IV+ICV */ | 2757 | /* if we're using host WEP, increase size by IV+ICV */ |
2758 | if (p80211_wep->data) { | 2758 | if (p80211_wep->data) { |
diff --git a/drivers/staging/wlan-ng/p80211conv.c b/drivers/staging/wlan-ng/p80211conv.c index 059e15055b74..409a7c88021b 100644 --- a/drivers/staging/wlan-ng/p80211conv.c +++ b/drivers/staging/wlan-ng/p80211conv.c | |||
@@ -103,7 +103,7 @@ static u8 oui_8021h[] = { 0x00, 0x00, 0xf8 }; | |||
103 | * May be called in interrupt or non-interrupt context | 103 | * May be called in interrupt or non-interrupt context |
104 | ----------------------------------------------------------------*/ | 104 | ----------------------------------------------------------------*/ |
105 | int skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv, | 105 | int skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv, |
106 | struct sk_buff *skb, p80211_hdr_t *p80211_hdr, | 106 | struct sk_buff *skb, union p80211_hdr *p80211_hdr, |
107 | p80211_metawep_t *p80211_wep) | 107 | p80211_metawep_t *p80211_wep) |
108 | { | 108 | { |
109 | 109 | ||
@@ -280,7 +280,7 @@ int skb_p80211_to_ether(wlandevice_t *wlandev, u32 ethconv, | |||
280 | unsigned int payload_offset; | 280 | unsigned int payload_offset; |
281 | u8 daddr[WLAN_ETHADDR_LEN]; | 281 | u8 daddr[WLAN_ETHADDR_LEN]; |
282 | u8 saddr[WLAN_ETHADDR_LEN]; | 282 | u8 saddr[WLAN_ETHADDR_LEN]; |
283 | p80211_hdr_t *w_hdr; | 283 | union p80211_hdr *w_hdr; |
284 | wlan_ethhdr_t *e_hdr; | 284 | wlan_ethhdr_t *e_hdr; |
285 | wlan_llc_t *e_llc; | 285 | wlan_llc_t *e_llc; |
286 | wlan_snap_t *e_snap; | 286 | wlan_snap_t *e_snap; |
@@ -290,7 +290,7 @@ int skb_p80211_to_ether(wlandevice_t *wlandev, u32 ethconv, | |||
290 | payload_length = skb->len - WLAN_HDR_A3_LEN - WLAN_CRC_LEN; | 290 | payload_length = skb->len - WLAN_HDR_A3_LEN - WLAN_CRC_LEN; |
291 | payload_offset = WLAN_HDR_A3_LEN; | 291 | payload_offset = WLAN_HDR_A3_LEN; |
292 | 292 | ||
293 | w_hdr = (p80211_hdr_t *) skb->data; | 293 | w_hdr = (union p80211_hdr *) skb->data; |
294 | 294 | ||
295 | /* setup some vars for convenience */ | 295 | /* setup some vars for convenience */ |
296 | fc = le16_to_cpu(w_hdr->a3.fc); | 296 | fc = le16_to_cpu(w_hdr->a3.fc); |
diff --git a/drivers/staging/wlan-ng/p80211conv.h b/drivers/staging/wlan-ng/p80211conv.h index 6fe163be24f6..65ab2115df18 100644 --- a/drivers/staging/wlan-ng/p80211conv.h +++ b/drivers/staging/wlan-ng/p80211conv.h | |||
@@ -153,7 +153,7 @@ struct wlandevice; | |||
153 | int skb_p80211_to_ether(struct wlandevice *wlandev, u32 ethconv, | 153 | 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, p80211_hdr_t *p80211_hdr, | 156 | struct sk_buff *skb, union p80211_hdr *p80211_hdr, |
157 | p80211_metawep_t *p80211_wep); | 157 | p80211_metawep_t *p80211_wep); |
158 | 158 | ||
159 | int p80211_stt_findproto(u16 proto); | 159 | int p80211_stt_findproto(u16 proto); |
diff --git a/drivers/staging/wlan-ng/p80211hdr.h b/drivers/staging/wlan-ng/p80211hdr.h index 419de4dee560..1f6e4ebc6eb9 100644 --- a/drivers/staging/wlan-ng/p80211hdr.h +++ b/drivers/staging/wlan-ng/p80211hdr.h | |||
@@ -94,7 +94,7 @@ | |||
94 | 94 | ||
95 | /* Control */ | 95 | /* Control */ |
96 | #define WLAN_FSTYPE_BLOCKACKREQ 0x8 | 96 | #define WLAN_FSTYPE_BLOCKACKREQ 0x8 |
97 | #define WLAN_FSTYPE_BLOCKACK 0x9 | 97 | #define WLAN_FSTYPE_BLOCKACK 0x9 |
98 | #define WLAN_FSTYPE_PSPOLL 0x0a | 98 | #define WLAN_FSTYPE_PSPOLL 0x0a |
99 | #define WLAN_FSTYPE_RTS 0x0b | 99 | #define WLAN_FSTYPE_RTS 0x0b |
100 | #define WLAN_FSTYPE_CTS 0x0c | 100 | #define WLAN_FSTYPE_CTS 0x0c |
@@ -133,13 +133,13 @@ | |||
133 | 133 | ||
134 | #define WLAN_GET_FC_FTYPE(n) ((((u16)(n)) & (BIT(2) | BIT(3))) >> 2) | 134 | #define WLAN_GET_FC_FTYPE(n) ((((u16)(n)) & (BIT(2) | BIT(3))) >> 2) |
135 | #define WLAN_GET_FC_FSTYPE(n) ((((u16)(n)) & (BIT(4)|BIT(5)|BIT(6)|BIT(7))) >> 4) | 135 | #define WLAN_GET_FC_FSTYPE(n) ((((u16)(n)) & (BIT(4)|BIT(5)|BIT(6)|BIT(7))) >> 4) |
136 | #define WLAN_GET_FC_TODS(n) ((((u16)(n)) & (BIT(8))) >> 8) | 136 | #define WLAN_GET_FC_TODS(n) ((((u16)(n)) & (BIT(8))) >> 8) |
137 | #define WLAN_GET_FC_FROMDS(n) ((((u16)(n)) & (BIT(9))) >> 9) | 137 | #define WLAN_GET_FC_FROMDS(n) ((((u16)(n)) & (BIT(9))) >> 9) |
138 | #define WLAN_GET_FC_ISWEP(n) ((((u16)(n)) & (BIT(14))) >> 14) | 138 | #define WLAN_GET_FC_ISWEP(n) ((((u16)(n)) & (BIT(14))) >> 14) |
139 | 139 | ||
140 | #define WLAN_SET_FC_FTYPE(n) (((u16)(n)) << 2) | 140 | #define WLAN_SET_FC_FTYPE(n) (((u16)(n)) << 2) |
141 | #define WLAN_SET_FC_FSTYPE(n) (((u16)(n)) << 4) | 141 | #define WLAN_SET_FC_FSTYPE(n) (((u16)(n)) << 4) |
142 | #define WLAN_SET_FC_TODS(n) (((u16)(n)) << 8) | 142 | #define WLAN_SET_FC_TODS(n) (((u16)(n)) << 8) |
143 | #define WLAN_SET_FC_FROMDS(n) (((u16)(n)) << 9) | 143 | #define WLAN_SET_FC_FROMDS(n) (((u16)(n)) << 9) |
144 | #define WLAN_SET_FC_ISWEP(n) (((u16)(n)) << 14) | 144 | #define WLAN_SET_FC_ISWEP(n) (((u16)(n)) << 14) |
145 | 145 | ||
@@ -147,16 +147,16 @@ | |||
147 | 147 | ||
148 | /* Generic 802.11 Header types */ | 148 | /* Generic 802.11 Header types */ |
149 | 149 | ||
150 | typedef struct p80211_hdr_a3 { | 150 | struct p80211_hdr_a3 { |
151 | u16 fc; | 151 | u16 fc; |
152 | u16 dur; | 152 | u16 dur; |
153 | u8 a1[ETH_ALEN]; | 153 | u8 a1[ETH_ALEN]; |
154 | u8 a2[ETH_ALEN]; | 154 | u8 a2[ETH_ALEN]; |
155 | u8 a3[ETH_ALEN]; | 155 | u8 a3[ETH_ALEN]; |
156 | u16 seq; | 156 | u16 seq; |
157 | } __attribute__ ((packed)) p80211_hdr_a3_t; | 157 | } __attribute__ ((packed)); |
158 | 158 | ||
159 | typedef struct p80211_hdr_a4 { | 159 | struct p80211_hdr_a4 { |
160 | u16 fc; | 160 | u16 fc; |
161 | u16 dur; | 161 | u16 dur; |
162 | u8 a1[ETH_ALEN]; | 162 | u8 a1[ETH_ALEN]; |
@@ -164,18 +164,18 @@ typedef struct p80211_hdr_a4 { | |||
164 | u8 a3[ETH_ALEN]; | 164 | u8 a3[ETH_ALEN]; |
165 | u16 seq; | 165 | u16 seq; |
166 | u8 a4[ETH_ALEN]; | 166 | u8 a4[ETH_ALEN]; |
167 | } __attribute__ ((packed)) p80211_hdr_a4_t; | 167 | } __attribute__ ((packed)); |
168 | 168 | ||
169 | typedef union p80211_hdr { | 169 | union p80211_hdr { |
170 | p80211_hdr_a3_t a3; | 170 | struct p80211_hdr_a3 a3; |
171 | p80211_hdr_a4_t a4; | 171 | struct p80211_hdr_a4 a4; |
172 | } __attribute__ ((packed)) p80211_hdr_t; | 172 | } __attribute__ ((packed)); |
173 | 173 | ||
174 | /* Frame and header length macros */ | 174 | /* Frame and header length macros */ |
175 | 175 | ||
176 | #define WLAN_CTL_FRAMELEN(fstype) (\ | 176 | #define WLAN_CTL_FRAMELEN(fstype) (\ |
177 | (fstype) == WLAN_FSTYPE_BLOCKACKREQ ? 24 : \ | 177 | (fstype) == WLAN_FSTYPE_BLOCKACKREQ ? 24 : \ |
178 | (fstype) == WLAN_FSTYPE_BLOCKACK ? 152 : \ | 178 | (fstype) == WLAN_FSTYPE_BLOCKACK ? 152 : \ |
179 | (fstype) == WLAN_FSTYPE_PSPOLL ? 20 : \ | 179 | (fstype) == WLAN_FSTYPE_PSPOLL ? 20 : \ |
180 | (fstype) == WLAN_FSTYPE_RTS ? 20 : \ | 180 | (fstype) == WLAN_FSTYPE_RTS ? 20 : \ |
181 | (fstype) == WLAN_FSTYPE_CTS ? 14 : \ | 181 | (fstype) == WLAN_FSTYPE_CTS ? 14 : \ |
diff --git a/drivers/staging/wlan-ng/p80211mgmt.h b/drivers/staging/wlan-ng/p80211mgmt.h index deb52f5fd780..3b5e8113ad17 100644 --- a/drivers/staging/wlan-ng/p80211mgmt.h +++ b/drivers/staging/wlan-ng/p80211mgmt.h | |||
@@ -298,7 +298,7 @@ typedef struct wlan_fr_mgmt { | |||
298 | u16 type; | 298 | u16 type; |
299 | u16 len; /* DOES NOT include CRC !!!! */ | 299 | u16 len; /* DOES NOT include CRC !!!! */ |
300 | u8 *buf; | 300 | u8 *buf; |
301 | p80211_hdr_t *hdr; | 301 | union p80211_hdr *hdr; |
302 | /* used for target specific data, skb in Linux */ | 302 | /* used for target specific data, skb in Linux */ |
303 | void *priv; | 303 | void *priv; |
304 | /*-- fixed fields -----------*/ | 304 | /*-- fixed fields -----------*/ |
@@ -310,7 +310,7 @@ typedef struct wlan_fr_beacon { | |||
310 | u16 type; | 310 | u16 type; |
311 | u16 len; | 311 | u16 len; |
312 | u8 *buf; | 312 | u8 *buf; |
313 | p80211_hdr_t *hdr; | 313 | union p80211_hdr *hdr; |
314 | /* used for target specific data, skb in Linux */ | 314 | /* used for target specific data, skb in Linux */ |
315 | void *priv; | 315 | void *priv; |
316 | /*-- fixed fields -----------*/ | 316 | /*-- fixed fields -----------*/ |
@@ -333,7 +333,7 @@ typedef struct wlan_fr_ibssatim { | |||
333 | u16 type; | 333 | u16 type; |
334 | u16 len; | 334 | u16 len; |
335 | u8 *buf; | 335 | u8 *buf; |
336 | p80211_hdr_t *hdr; | 336 | union p80211_hdr *hdr; |
337 | /* used for target specific data, skb in Linux */ | 337 | /* used for target specific data, skb in Linux */ |
338 | void *priv; | 338 | void *priv; |
339 | 339 | ||
@@ -349,7 +349,7 @@ typedef struct wlan_fr_disassoc { | |||
349 | u16 type; | 349 | u16 type; |
350 | u16 len; | 350 | u16 len; |
351 | u8 *buf; | 351 | u8 *buf; |
352 | p80211_hdr_t *hdr; | 352 | union p80211_hdr *hdr; |
353 | /* used for target specific data, skb in Linux */ | 353 | /* used for target specific data, skb in Linux */ |
354 | void *priv; | 354 | void *priv; |
355 | /*-- fixed fields -----------*/ | 355 | /*-- fixed fields -----------*/ |
@@ -364,7 +364,7 @@ typedef struct wlan_fr_assocreq { | |||
364 | u16 type; | 364 | u16 type; |
365 | u16 len; | 365 | u16 len; |
366 | u8 *buf; | 366 | u8 *buf; |
367 | p80211_hdr_t *hdr; | 367 | union p80211_hdr *hdr; |
368 | /* used for target specific data, skb in Linux */ | 368 | /* used for target specific data, skb in Linux */ |
369 | void *priv; | 369 | void *priv; |
370 | /*-- fixed fields -----------*/ | 370 | /*-- fixed fields -----------*/ |
@@ -381,7 +381,7 @@ typedef struct wlan_fr_assocresp { | |||
381 | u16 type; | 381 | u16 type; |
382 | u16 len; | 382 | u16 len; |
383 | u8 *buf; | 383 | u8 *buf; |
384 | p80211_hdr_t *hdr; | 384 | union p80211_hdr *hdr; |
385 | /* used for target specific data, skb in Linux */ | 385 | /* used for target specific data, skb in Linux */ |
386 | void *priv; | 386 | void *priv; |
387 | /*-- fixed fields -----------*/ | 387 | /*-- fixed fields -----------*/ |
@@ -398,7 +398,7 @@ typedef struct wlan_fr_reassocreq { | |||
398 | u16 type; | 398 | u16 type; |
399 | u16 len; | 399 | u16 len; |
400 | u8 *buf; | 400 | u8 *buf; |
401 | p80211_hdr_t *hdr; | 401 | union p80211_hdr *hdr; |
402 | /* used for target specific data, skb in Linux */ | 402 | /* used for target specific data, skb in Linux */ |
403 | void *priv; | 403 | void *priv; |
404 | /*-- fixed fields -----------*/ | 404 | /*-- fixed fields -----------*/ |
@@ -416,7 +416,7 @@ typedef struct wlan_fr_reassocresp { | |||
416 | u16 type; | 416 | u16 type; |
417 | u16 len; | 417 | u16 len; |
418 | u8 *buf; | 418 | u8 *buf; |
419 | p80211_hdr_t *hdr; | 419 | union p80211_hdr *hdr; |
420 | /* used for target specific data, skb in Linux */ | 420 | /* used for target specific data, skb in Linux */ |
421 | void *priv; | 421 | void *priv; |
422 | /*-- fixed fields -----------*/ | 422 | /*-- fixed fields -----------*/ |
@@ -433,7 +433,7 @@ typedef struct wlan_fr_probereq { | |||
433 | u16 type; | 433 | u16 type; |
434 | u16 len; | 434 | u16 len; |
435 | u8 *buf; | 435 | u8 *buf; |
436 | p80211_hdr_t *hdr; | 436 | union p80211_hdr *hdr; |
437 | /* used for target specific data, skb in Linux */ | 437 | /* used for target specific data, skb in Linux */ |
438 | void *priv; | 438 | void *priv; |
439 | /*-- fixed fields -----------*/ | 439 | /*-- fixed fields -----------*/ |
@@ -448,7 +448,7 @@ typedef struct wlan_fr_proberesp { | |||
448 | u16 type; | 448 | u16 type; |
449 | u16 len; | 449 | u16 len; |
450 | u8 *buf; | 450 | u8 *buf; |
451 | p80211_hdr_t *hdr; | 451 | union p80211_hdr *hdr; |
452 | /* used for target specific data, skb in Linux */ | 452 | /* used for target specific data, skb in Linux */ |
453 | void *priv; | 453 | void *priv; |
454 | /*-- fixed fields -----------*/ | 454 | /*-- fixed fields -----------*/ |
@@ -469,7 +469,7 @@ typedef struct wlan_fr_authen { | |||
469 | u16 type; | 469 | u16 type; |
470 | u16 len; | 470 | u16 len; |
471 | u8 *buf; | 471 | u8 *buf; |
472 | p80211_hdr_t *hdr; | 472 | union p80211_hdr *hdr; |
473 | /* used for target specific data, skb in Linux */ | 473 | /* used for target specific data, skb in Linux */ |
474 | void *priv; | 474 | void *priv; |
475 | /*-- fixed fields -----------*/ | 475 | /*-- fixed fields -----------*/ |
@@ -486,7 +486,7 @@ typedef struct wlan_fr_deauthen { | |||
486 | u16 type; | 486 | u16 type; |
487 | u16 len; | 487 | u16 len; |
488 | u8 *buf; | 488 | u8 *buf; |
489 | p80211_hdr_t *hdr; | 489 | union p80211_hdr *hdr; |
490 | /* used for target specific data, skb in Linux */ | 490 | /* used for target specific data, skb in Linux */ |
491 | void *priv; | 491 | void *priv; |
492 | /*-- fixed fields -----------*/ | 492 | /*-- fixed fields -----------*/ |
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index ead8a356fa49..c299acea9886 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c | |||
@@ -264,7 +264,7 @@ static void p80211netdev_rx_bh(unsigned long arg) | |||
264 | wlandevice_t *wlandev = (wlandevice_t *) arg; | 264 | wlandevice_t *wlandev = (wlandevice_t *) arg; |
265 | struct sk_buff *skb = NULL; | 265 | struct sk_buff *skb = NULL; |
266 | netdevice_t *dev = wlandev->netdev; | 266 | netdevice_t *dev = wlandev->netdev; |
267 | p80211_hdr_a3_t *hdr; | 267 | struct p80211_hdr_a3 *hdr; |
268 | u16 fc; | 268 | u16 fc; |
269 | 269 | ||
270 | /* Let's empty our our queue */ | 270 | /* Let's empty our our queue */ |
@@ -288,7 +288,7 @@ static void p80211netdev_rx_bh(unsigned long arg) | |||
288 | netif_rx_ni(skb); | 288 | netif_rx_ni(skb); |
289 | continue; | 289 | continue; |
290 | } else { | 290 | } else { |
291 | hdr = (p80211_hdr_a3_t *) skb->data; | 291 | hdr = (struct p80211_hdr_a3 *) skb->data; |
292 | fc = le16_to_cpu(hdr->fc); | 292 | fc = le16_to_cpu(hdr->fc); |
293 | if (p80211_rx_typedrop(wlandev, fc)) { | 293 | if (p80211_rx_typedrop(wlandev, fc)) { |
294 | dev_kfree_skb(skb); | 294 | dev_kfree_skb(skb); |
@@ -350,7 +350,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, | |||
350 | int result = 0; | 350 | int result = 0; |
351 | int txresult = -1; | 351 | int txresult = -1; |
352 | wlandevice_t *wlandev = netdev->ml_priv; | 352 | wlandevice_t *wlandev = netdev->ml_priv; |
353 | p80211_hdr_t p80211_hdr; | 353 | union p80211_hdr p80211_hdr; |
354 | p80211_metawep_t p80211_wep; | 354 | p80211_metawep_t p80211_wep; |
355 | 355 | ||
356 | if (skb == NULL) | 356 | if (skb == NULL) |
@@ -361,7 +361,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, | |||
361 | goto failed; | 361 | goto failed; |
362 | } | 362 | } |
363 | 363 | ||
364 | memset(&p80211_hdr, 0, sizeof(p80211_hdr_t)); | 364 | memset(&p80211_hdr, 0, sizeof(union p80211_hdr)); |
365 | memset(&p80211_wep, 0, sizeof(p80211_metawep_t)); | 365 | memset(&p80211_wep, 0, sizeof(p80211_metawep_t)); |
366 | 366 | ||
367 | if (netif_queue_stopped(netdev)) { | 367 | if (netif_queue_stopped(netdev)) { |
@@ -401,8 +401,8 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, | |||
401 | goto failed; | 401 | goto failed; |
402 | } | 402 | } |
403 | /* move the header over */ | 403 | /* move the header over */ |
404 | memcpy(&p80211_hdr, skb->data, sizeof(p80211_hdr_t)); | 404 | memcpy(&p80211_hdr, skb->data, sizeof(union p80211_hdr)); |
405 | skb_pull(skb, sizeof(p80211_hdr_t)); | 405 | skb_pull(skb, sizeof(union p80211_hdr)); |
406 | } else { | 406 | } else { |
407 | if (skb_ether_to_p80211 | 407 | if (skb_ether_to_p80211 |
408 | (wlandev, wlandev->ethconv, skb, &p80211_hdr, | 408 | (wlandev, wlandev->ethconv, skb, &p80211_hdr, |
diff --git a/drivers/staging/wlan-ng/p80211netdev.h b/drivers/staging/wlan-ng/p80211netdev.h index 098ccf71e035..3e19dade5e78 100644 --- a/drivers/staging/wlan-ng/p80211netdev.h +++ b/drivers/staging/wlan-ng/p80211netdev.h | |||
@@ -184,7 +184,7 @@ typedef struct wlandevice { | |||
184 | int (*close) (struct wlandevice *wlandev); | 184 | int (*close) (struct wlandevice *wlandev); |
185 | void (*reset) (struct wlandevice *wlandev); | 185 | void (*reset) (struct wlandevice *wlandev); |
186 | int (*txframe) (struct wlandevice *wlandev, struct sk_buff *skb, | 186 | int (*txframe) (struct wlandevice *wlandev, struct sk_buff *skb, |
187 | p80211_hdr_t *p80211_hdr, | 187 | union p80211_hdr *p80211_hdr, |
188 | p80211_metawep_t *p80211_wep); | 188 | p80211_metawep_t *p80211_wep); |
189 | int (*mlmerequest) (struct wlandevice *wlandev, p80211msg_t *msg); | 189 | int (*mlmerequest) (struct wlandevice *wlandev, p80211msg_t *msg); |
190 | int (*set_multicast_list) (struct wlandevice *wlandev, | 190 | int (*set_multicast_list) (struct wlandevice *wlandev, |
diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c index 1a502bc4fae8..6f5fc011c914 100644 --- a/drivers/staging/wlan-ng/prism2sta.c +++ b/drivers/staging/wlan-ng/prism2sta.c | |||
@@ -130,7 +130,7 @@ static int prism2sta_open(wlandevice_t *wlandev); | |||
130 | static int prism2sta_close(wlandevice_t *wlandev); | 130 | static int prism2sta_close(wlandevice_t *wlandev); |
131 | static void prism2sta_reset(wlandevice_t *wlandev); | 131 | static void prism2sta_reset(wlandevice_t *wlandev); |
132 | static int prism2sta_txframe(wlandevice_t *wlandev, struct sk_buff *skb, | 132 | static int prism2sta_txframe(wlandevice_t *wlandev, struct sk_buff *skb, |
133 | p80211_hdr_t *p80211_hdr, | 133 | union p80211_hdr *p80211_hdr, |
134 | p80211_metawep_t *p80211_wep); | 134 | p80211_metawep_t *p80211_wep); |
135 | static int prism2sta_mlmerequest(wlandevice_t *wlandev, p80211msg_t *msg); | 135 | static int prism2sta_mlmerequest(wlandevice_t *wlandev, p80211msg_t *msg); |
136 | static int prism2sta_getcardinfo(wlandevice_t *wlandev); | 136 | static int prism2sta_getcardinfo(wlandevice_t *wlandev); |
@@ -268,7 +268,7 @@ static void prism2sta_reset(wlandevice_t *wlandev) | |||
268 | * process thread | 268 | * process thread |
269 | ----------------------------------------------------------------*/ | 269 | ----------------------------------------------------------------*/ |
270 | static int prism2sta_txframe(wlandevice_t *wlandev, struct sk_buff *skb, | 270 | static int prism2sta_txframe(wlandevice_t *wlandev, struct sk_buff *skb, |
271 | p80211_hdr_t *p80211_hdr, | 271 | union p80211_hdr *p80211_hdr, |
272 | p80211_metawep_t *p80211_wep) | 272 | p80211_metawep_t *p80211_wep) |
273 | { | 273 | { |
274 | hfa384x_t *hw = (hfa384x_t *) wlandev->priv; | 274 | hfa384x_t *hw = (hfa384x_t *) wlandev->priv; |