rt2x00: Add TX/RX frame dumping facility
[linux-2.6.git] / drivers / net / wireless / rt2x00 / rt2x00pci.c
index c1d7c10e58fecc2413d9c1977a1019d1b5c11b62..483380819f9d929a4f150b177fb5d89a63612fc9 100644 (file)
@@ -178,8 +178,8 @@ void rt2x00pci_rxdone(struct rt2x00_dev *rt2x00dev)
                 * Fill in skb descriptor
                 */
                skbdesc = get_skb_desc(skb);
-               skbdesc->desc_len = desc.size;
-               skbdesc->data_len = entry->ring->desc_size;
+               skbdesc->desc_len = entry->ring->desc_size;
+               skbdesc->data_len = skb->len;
                skbdesc->desc = entry->priv;
                skbdesc->data = skb->data;
                skbdesc->ring = ring;