diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2007-11-27 15:49:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:05:08 -0500 |
commit | 4d8dd66c1659ba0d1b110ed0488f4f6ffbc90e71 (patch) | |
tree | 03ae5e8fc993ec504f099ddb5d1f40f3a371289d /drivers/net/wireless/rt2x00/rt2x00pci.c | |
parent | 08992f7fb139c7dbaf593402312ee5a055352f05 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c index c1d7c10e58fe..483380819f9d 100644 --- a/drivers/net/wireless/rt2x00/rt2x00pci.c +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c | |||
@@ -178,8 +178,8 @@ void rt2x00pci_rxdone(struct rt2x00_dev *rt2x00dev) | |||
178 | * Fill in skb descriptor | 178 | * Fill in skb descriptor |
179 | */ | 179 | */ |
180 | skbdesc = get_skb_desc(skb); | 180 | skbdesc = get_skb_desc(skb); |
181 | skbdesc->desc_len = desc.size; | 181 | skbdesc->desc_len = entry->ring->desc_size; |
182 | skbdesc->data_len = entry->ring->desc_size; | 182 | skbdesc->data_len = skb->len; |
183 | skbdesc->desc = entry->priv; | 183 | skbdesc->desc = entry->priv; |
184 | skbdesc->data = skb->data; | 184 | skbdesc->data = skb->data; |
185 | skbdesc->ring = ring; | 185 | skbdesc->ring = ring; |