diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 164548fd22b7..c89103786b1c 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -990,7 +990,7 @@ static int rt2500usb_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
990 | * TX descriptor initialization | 990 | * TX descriptor initialization |
991 | */ | 991 | */ |
992 | static void rt2500usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, | 992 | static void rt2500usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, |
993 | struct data_desc *txd, | 993 | __le32 *txd, |
994 | struct txdata_entry_desc *desc, | 994 | struct txdata_entry_desc *desc, |
995 | struct ieee80211_hdr *ieee80211hdr, | 995 | struct ieee80211_hdr *ieee80211hdr, |
996 | unsigned int length, | 996 | unsigned int length, |
@@ -1082,9 +1082,8 @@ static void rt2500usb_fill_rxdone(struct data_entry *entry, | |||
1082 | struct rxdata_entry_desc *desc) | 1082 | struct rxdata_entry_desc *desc) |
1083 | { | 1083 | { |
1084 | struct urb *urb = entry->priv; | 1084 | struct urb *urb = entry->priv; |
1085 | struct data_desc *rxd = (struct data_desc *)(entry->skb->data + | 1085 | __le32 *rxd = (__le32 *)(entry->skb->data + |
1086 | (urb->actual_length - | 1086 | (urb->actual_length - entry->ring->desc_size)); |
1087 | entry->ring->desc_size)); | ||
1088 | u32 word0; | 1087 | u32 word0; |
1089 | u32 word1; | 1088 | u32 word1; |
1090 | 1089 | ||
@@ -1682,7 +1681,7 @@ static int rt2500usb_beacon_update(struct ieee80211_hw *hw, | |||
1682 | skb_push(skb, ring->desc_size); | 1681 | skb_push(skb, ring->desc_size); |
1683 | memset(skb->data, 0, ring->desc_size); | 1682 | memset(skb->data, 0, ring->desc_size); |
1684 | 1683 | ||
1685 | rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data, | 1684 | rt2x00lib_write_tx_desc(rt2x00dev, (__le32 *)skb->data, |
1686 | (struct ieee80211_hdr *)(skb->data + | 1685 | (struct ieee80211_hdr *)(skb->data + |
1687 | ring->desc_size), | 1686 | ring->desc_size), |
1688 | skb->len - ring->desc_size, control); | 1687 | skb->len - ring->desc_size, control); |