diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index d16f0a79d985..ab97b0600ec8 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -113,7 +113,7 @@ static void rt2x00usb_interrupt_txdone(struct urb *urb) | |||
113 | struct data_entry *entry = (struct data_entry *)urb->context; | 113 | struct data_entry *entry = (struct data_entry *)urb->context; |
114 | struct data_ring *ring = entry->ring; | 114 | struct data_ring *ring = entry->ring; |
115 | struct rt2x00_dev *rt2x00dev = ring->rt2x00dev; | 115 | struct rt2x00_dev *rt2x00dev = ring->rt2x00dev; |
116 | struct data_desc *txd = (struct data_desc *)entry->skb->data; | 116 | __le32 *txd = (__le32 *)entry->skb->data; |
117 | u32 word; | 117 | u32 word; |
118 | int tx_status; | 118 | int tx_status; |
119 | 119 | ||
@@ -181,7 +181,7 @@ int rt2x00usb_write_tx_data(struct rt2x00_dev *rt2x00dev, | |||
181 | skb_push(skb, ring->desc_size); | 181 | skb_push(skb, ring->desc_size); |
182 | memset(skb->data, 0, ring->desc_size); | 182 | memset(skb->data, 0, ring->desc_size); |
183 | 183 | ||
184 | rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data, | 184 | rt2x00lib_write_tx_desc(rt2x00dev, (__le32 *)skb->data, |
185 | (struct ieee80211_hdr *)(skb->data + | 185 | (struct ieee80211_hdr *)(skb->data + |
186 | ring->desc_size), | 186 | ring->desc_size), |
187 | skb->len - ring->desc_size, control); | 187 | skb->len - ring->desc_size, control); |