aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 46491eec377d..6579718f36ad 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1113,6 +1113,7 @@ static void rt2500usb_kick_tx_queue(struct rt2x00_dev *rt2x00dev,
1113static void rt2500usb_fill_rxdone(struct data_entry *entry, 1113static void rt2500usb_fill_rxdone(struct data_entry *entry,
1114 struct rxdata_entry_desc *desc) 1114 struct rxdata_entry_desc *desc)
1115{ 1115{
1116 struct skb_desc *skbdesc = get_skb_desc(entry->skb);
1116 struct urb *urb = entry->priv; 1117 struct urb *urb = entry->priv;
1117 __le32 *rxd = (__le32 *)(entry->skb->data + 1118 __le32 *rxd = (__le32 *)(entry->skb->data +
1118 (urb->actual_length - entry->ring->desc_size)); 1119 (urb->actual_length - entry->ring->desc_size));
@@ -1137,6 +1138,17 @@ static void rt2500usb_fill_rxdone(struct data_entry *entry,
1137 desc->ofdm = rt2x00_get_field32(word0, RXD_W0_OFDM); 1138 desc->ofdm = rt2x00_get_field32(word0, RXD_W0_OFDM);
1138 desc->size = rt2x00_get_field32(word0, RXD_W0_DATABYTE_COUNT); 1139 desc->size = rt2x00_get_field32(word0, RXD_W0_DATABYTE_COUNT);
1139 desc->my_bss = !!rt2x00_get_field32(word0, RXD_W0_MY_BSS); 1140 desc->my_bss = !!rt2x00_get_field32(word0, RXD_W0_MY_BSS);
1141
1142 /*
1143 * Trim the skb to clear the descriptor area.
1144 */
1145 skb_pull(entry->skb, entry->ring->desc_size);
1146
1147 /*
1148 * Set descriptor and data pointer.
1149 */
1150 skbdesc->desc = entry->skb->data + skbdesc->data_len;
1151 skbdesc->data = entry->skb->data;
1140} 1152}
1141 1153
1142/* 1154/*