Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233854
b: refs/heads/master
c: 2c27392
h: refs/heads/master
v: v3
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Feb 28, 2011
1 parent fd9f223 commit d60be08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 63453c05da685323d45b7063cc27cf5e44b4134c
refs/heads/master: 2c27392dc4d4f5ee8a3967a520b8f6cac0418031
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/hif_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ static int __hif_usb_tx(struct hif_device_usb *hif_dev)
struct tx_buf *tx_buf = NULL;
struct sk_buff *nskb = NULL;
int ret = 0, i;
u16 *hdr, tx_skb_cnt = 0;
u16 tx_skb_cnt = 0;
u8 *buf;
__le16 *hdr;

if (hif_dev->tx.tx_skb_cnt == 0)
return 0;
Expand All @@ -245,9 +246,9 @@ static int __hif_usb_tx(struct hif_device_usb *hif_dev)

buf = tx_buf->buf;
buf += tx_buf->offset;
hdr = (u16 *)buf;
*hdr++ = nskb->len;
*hdr++ = ATH_USB_TX_STREAM_MODE_TAG;
hdr = (__le16 *)buf;
*hdr++ = cpu_to_le16(nskb->len);
*hdr++ = cpu_to_le16(ATH_USB_TX_STREAM_MODE_TAG);
buf += 4;
memcpy(buf, nskb->data, nskb->len);
tx_buf->len = nskb->len + 4;
Expand Down

0 comments on commit d60be08

Please sign in to comment.