Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122498
b: refs/heads/master
c: c912765
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Dec 5, 2008
1 parent 102f547 commit 9491299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 0f70f398460adb2d8aabb00e7e65f58247f219a3
refs/heads/master: c91276592695e13d1b52eab572551017cbf96ee7
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/p54/p54usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ static void p54u_tx_3887(struct ieee80211_hw *dev, struct sk_buff *skb,
usb_submit_urb(data_urb, GFP_ATOMIC);
}

static __le32 p54u_lm87_chksum(const u32 *data, size_t length)
static __le32 p54u_lm87_chksum(const __le32 *data, size_t length)
{
u32 chk = 0;

length >>= 2;
while (length--) {
chk ^= *data++;
chk ^= le32_to_cpu(*data++);
chk = (chk >> 5) ^ (chk << 3);
}

Expand All @@ -270,7 +270,7 @@ static void p54u_tx_lm87(struct ieee80211_hw *dev, struct sk_buff *skb,
if (!data_urb)
return;

checksum = p54u_lm87_chksum((u32 *)skb->data, skb->len);
checksum = p54u_lm87_chksum((__le32 *)skb->data, skb->len);
hdr = (struct lm87_tx_hdr *)skb_push(skb, sizeof(*hdr));
hdr->chksum = checksum;
hdr->device_addr = addr;
Expand Down

0 comments on commit 9491299

Please sign in to comment.