rt2x00: Add TX/RX frame dumping facility
This adds TX/RX frame dumping capabilities through debugfs. The intention is that with this approach debugging of rt2x00 is simplified since _all_ frames going in and out of the device are send to debugfs as well along with additional information like the hardware descriptor. Based on the patch by Mattias Nissler. Mattias also has some tools that will make the dumped frames available to wireshark: http://www-user.rhrk.uni-kl.de/~nissler/rt2x00/ Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
David S. Miller
parent
08992f7fb1
commit
4d8dd66c16
@@ -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;
|
||||
|
Reference in New Issue
Block a user