aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r--drivers/net/wireless/b43/xmit.c24
-rw-r--r--drivers/net/wireless/b43/xmit.h8
2 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index b74f25ec1ab4..36c72438aac4 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -338,10 +338,10 @@ int b43_generate_txhdr(struct b43_wldev *dev,
338 } 338 }
339 } 339 }
340 if (b43_is_old_txhdr_format(dev)) { 340 if (b43_is_old_txhdr_format(dev)) {
341 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->old_format.plcp), 341 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->format_351.plcp),
342 plcp_fragment_len, rate); 342 plcp_fragment_len, rate);
343 } else { 343 } else {
344 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->new_format.plcp), 344 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->format_410.plcp),
345 plcp_fragment_len, rate); 345 plcp_fragment_len, rate);
346 } 346 }
347 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->plcp_fb), 347 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->plcp_fb),
@@ -433,10 +433,10 @@ int b43_generate_txhdr(struct b43_wldev *dev,
433 433
434 if (b43_is_old_txhdr_format(dev)) { 434 if (b43_is_old_txhdr_format(dev)) {
435 cts = (struct ieee80211_cts *) 435 cts = (struct ieee80211_cts *)
436 (txhdr->old_format.rts_frame); 436 (txhdr->format_351.rts_frame);
437 } else { 437 } else {
438 cts = (struct ieee80211_cts *) 438 cts = (struct ieee80211_cts *)
439 (txhdr->new_format.rts_frame); 439 (txhdr->format_410.rts_frame);
440 } 440 }
441 ieee80211_ctstoself_get(dev->wl->hw, info->control.vif, 441 ieee80211_ctstoself_get(dev->wl->hw, info->control.vif,
442 fragment_data, fragment_len, 442 fragment_data, fragment_len,
@@ -448,10 +448,10 @@ int b43_generate_txhdr(struct b43_wldev *dev,
448 448
449 if (b43_is_old_txhdr_format(dev)) { 449 if (b43_is_old_txhdr_format(dev)) {
450 rts = (struct ieee80211_rts *) 450 rts = (struct ieee80211_rts *)
451 (txhdr->old_format.rts_frame); 451 (txhdr->format_351.rts_frame);
452 } else { 452 } else {
453 rts = (struct ieee80211_rts *) 453 rts = (struct ieee80211_rts *)
454 (txhdr->new_format.rts_frame); 454 (txhdr->format_410.rts_frame);
455 } 455 }
456 ieee80211_rts_get(dev->wl->hw, info->control.vif, 456 ieee80211_rts_get(dev->wl->hw, info->control.vif,
457 fragment_data, fragment_len, 457 fragment_data, fragment_len,
@@ -463,9 +463,9 @@ int b43_generate_txhdr(struct b43_wldev *dev,
463 463
464 /* Generate the PLCP headers for the RTS/CTS frame */ 464 /* Generate the PLCP headers for the RTS/CTS frame */
465 if (b43_is_old_txhdr_format(dev)) 465 if (b43_is_old_txhdr_format(dev))
466 plcp = &txhdr->old_format.rts_plcp; 466 plcp = &txhdr->format_351.rts_plcp;
467 else 467 else
468 plcp = &txhdr->new_format.rts_plcp; 468 plcp = &txhdr->format_410.rts_plcp;
469 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)plcp, 469 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)plcp,
470 len, rts_rate); 470 len, rts_rate);
471 plcp = &txhdr->rts_plcp_fb; 471 plcp = &txhdr->rts_plcp_fb;
@@ -474,10 +474,10 @@ int b43_generate_txhdr(struct b43_wldev *dev,
474 474
475 if (b43_is_old_txhdr_format(dev)) { 475 if (b43_is_old_txhdr_format(dev)) {
476 hdr = (struct ieee80211_hdr *) 476 hdr = (struct ieee80211_hdr *)
477 (&txhdr->old_format.rts_frame); 477 (&txhdr->format_351.rts_frame);
478 } else { 478 } else {
479 hdr = (struct ieee80211_hdr *) 479 hdr = (struct ieee80211_hdr *)
480 (&txhdr->new_format.rts_frame); 480 (&txhdr->format_410.rts_frame);
481 } 481 }
482 txhdr->rts_dur_fb = hdr->duration_id; 482 txhdr->rts_dur_fb = hdr->duration_id;
483 483
@@ -506,9 +506,9 @@ int b43_generate_txhdr(struct b43_wldev *dev,
506 506
507 /* Magic cookie */ 507 /* Magic cookie */
508 if (b43_is_old_txhdr_format(dev)) 508 if (b43_is_old_txhdr_format(dev))
509 txhdr->old_format.cookie = cpu_to_le16(cookie); 509 txhdr->format_351.cookie = cpu_to_le16(cookie);
510 else 510 else
511 txhdr->new_format.cookie = cpu_to_le16(cookie); 511 txhdr->format_410.cookie = cpu_to_le16(cookie);
512 512
513 if (phy->type == B43_PHYTYPE_N) { 513 if (phy->type == B43_PHYTYPE_N) {
514 txhdr->phy_ctl1 = 514 txhdr->phy_ctl1 =
diff --git a/drivers/net/wireless/b43/xmit.h b/drivers/net/wireless/b43/xmit.h
index 42debb5cd6fa..79fc162b90ec 100644
--- a/drivers/net/wireless/b43/xmit.h
+++ b/drivers/net/wireless/b43/xmit.h
@@ -46,7 +46,7 @@ struct b43_txhdr {
46 __le32 timeout; /* Timeout */ 46 __le32 timeout; /* Timeout */
47 47
48 union { 48 union {
49 /* The new r410 format. */ 49 /* Tested with 410.2160, 478.104 and 508.* */
50 struct { 50 struct {
51 __le16 mimo_antenna; /* MIMO antenna select */ 51 __le16 mimo_antenna; /* MIMO antenna select */
52 __le16 preload_size; /* Preload size */ 52 __le16 preload_size; /* Preload size */
@@ -57,9 +57,9 @@ struct b43_txhdr {
57 __u8 rts_frame[16]; /* The RTS frame (if used) */ 57 __u8 rts_frame[16]; /* The RTS frame (if used) */
58 PAD_BYTES(2); 58 PAD_BYTES(2);
59 struct b43_plcp_hdr6 plcp; /* Main PLCP header */ 59 struct b43_plcp_hdr6 plcp; /* Main PLCP header */
60 } new_format __packed; 60 } format_410 __packed;
61 61
62 /* The old r351 format. */ 62 /* Tested with 351.126 */
63 struct { 63 struct {
64 PAD_BYTES(2); 64 PAD_BYTES(2);
65 __le16 cookie; /* TX frame cookie */ 65 __le16 cookie; /* TX frame cookie */
@@ -68,7 +68,7 @@ struct b43_txhdr {
68 __u8 rts_frame[16]; /* The RTS frame (if used) */ 68 __u8 rts_frame[16]; /* The RTS frame (if used) */
69 PAD_BYTES(2); 69 PAD_BYTES(2);
70 struct b43_plcp_hdr6 plcp; /* Main PLCP header */ 70 struct b43_plcp_hdr6 plcp; /* Main PLCP header */
71 } old_format __packed; 71 } format_351 __packed;
72 72
73 } __packed; 73 } __packed;
74} __packed; 74} __packed;