diff options
author | Gertjan van Wingerde <gwingerde@wingerd.gvw.nl> | 2008-06-06 16:54:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:17:56 -0400 |
commit | d56d453a1dd85aff08fe6965f395049725fdb04e (patch) | |
tree | 4dcb94a3cb301fc8c4dcd3892487233f64dcb7af /drivers/net/wireless/rt2x00/rt2x00debug.c | |
parent | b869767b6f5049f1d1ede2bb3e48832e0722ca5a (diff) |
rt2x00: Cleanup struct skb_frame_desc.
The data and data_len fields aren't really necessary in struct
skb_frame_desc, as they can be deduced from the skb itself.
Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl>
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/rt2x00debug.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index bd92cb8e68e0..300cf061035f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/rt2x00/rt2x00debug.c | |||
@@ -133,7 +133,7 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
133 | return; | 133 | return; |
134 | } | 134 | } |
135 | 135 | ||
136 | skbcopy = alloc_skb(sizeof(*dump_hdr) + desc->desc_len + desc->data_len, | 136 | skbcopy = alloc_skb(sizeof(*dump_hdr) + desc->desc_len + skb->len, |
137 | GFP_ATOMIC); | 137 | GFP_ATOMIC); |
138 | if (!skbcopy) { | 138 | if (!skbcopy) { |
139 | DEBUG(rt2x00dev, "Failed to copy skb for dump.\n"); | 139 | DEBUG(rt2x00dev, "Failed to copy skb for dump.\n"); |
@@ -144,7 +144,7 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
144 | dump_hdr->version = cpu_to_le32(DUMP_HEADER_VERSION); | 144 | dump_hdr->version = cpu_to_le32(DUMP_HEADER_VERSION); |
145 | dump_hdr->header_length = cpu_to_le32(sizeof(*dump_hdr)); | 145 | dump_hdr->header_length = cpu_to_le32(sizeof(*dump_hdr)); |
146 | dump_hdr->desc_length = cpu_to_le32(desc->desc_len); | 146 | dump_hdr->desc_length = cpu_to_le32(desc->desc_len); |
147 | dump_hdr->data_length = cpu_to_le32(desc->data_len); | 147 | dump_hdr->data_length = cpu_to_le32(skb->len); |
148 | dump_hdr->chip_rt = cpu_to_le16(rt2x00dev->chip.rt); | 148 | dump_hdr->chip_rt = cpu_to_le16(rt2x00dev->chip.rt); |
149 | dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf); | 149 | dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf); |
150 | dump_hdr->chip_rev = cpu_to_le32(rt2x00dev->chip.rev); | 150 | dump_hdr->chip_rev = cpu_to_le32(rt2x00dev->chip.rev); |
@@ -155,7 +155,7 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
155 | dump_hdr->timestamp_usec = cpu_to_le32(timestamp.tv_usec); | 155 | dump_hdr->timestamp_usec = cpu_to_le32(timestamp.tv_usec); |
156 | 156 | ||
157 | memcpy(skb_put(skbcopy, desc->desc_len), desc->desc, desc->desc_len); | 157 | memcpy(skb_put(skbcopy, desc->desc_len), desc->desc, desc->desc_len); |
158 | memcpy(skb_put(skbcopy, desc->data_len), desc->data, desc->data_len); | 158 | memcpy(skb_put(skbcopy, skb->len), skb->data, skb->len); |
159 | 159 | ||
160 | skb_queue_tail(&intf->frame_dump_skbqueue, skbcopy); | 160 | skb_queue_tail(&intf->frame_dump_skbqueue, skbcopy); |
161 | wake_up_interruptible(&intf->frame_dump_waitqueue); | 161 | wake_up_interruptible(&intf->frame_dump_waitqueue); |