Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79334
b: refs/heads/master
c: 977b143
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Jan 28, 2008
1 parent 2c3f8a9 commit 2cb7616
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8524f59d4735e1ff9c9dc3e09ebcc7bdb3b32b7b
refs/heads/master: 977b143c13e685081625704ac356b741d71c6a73
11 changes: 3 additions & 8 deletions trunk/drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -4365,14 +4365,10 @@ static int transmit_802_11_packet(struct airo_info *ai, int len, char *pPacket)
Cmd cmd;
Resp rsp;
int hdrlen;
struct {
u8 addr4[ETH_ALEN];
u16 gaplen;
u8 gap[6];
} gap;
static u8 tail[(30-10) + 2 + 6] = {[30-10] = 6};
/* padding of header to full size + le16 gaplen (6) + gaplen bytes */
u16 txFid = len;
len >>= 16;
gap.gaplen = 6;

fc = le16_to_cpu(*(const u16*)pPacket);
switch (fc & 0xc) {
Expand Down Expand Up @@ -4405,8 +4401,7 @@ static int transmit_802_11_packet(struct airo_info *ai, int len, char *pPacket)
bap_write(ai, &payloadLen, sizeof(payloadLen),BAP1);
if (bap_setup(ai, txFid, 0x0014, BAP1) != SUCCESS) return ERROR;
bap_write(ai, (const u16*)pPacket, hdrlen, BAP1);
bap_write(ai, hdrlen == 30 ?
(const u16*)&gap.gaplen : (const u16*)&gap, 38 - hdrlen, BAP1);
bap_write(ai, (u16 *)(tail + (hdrlen - 10)), 38 - hdrlen, BAP1);

bap_write(ai, (const u16*)(pPacket + hdrlen), len - hdrlen, BAP1);
// issue the transmit command
Expand Down

0 comments on commit 2cb7616

Please sign in to comment.