diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00debug.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00debug.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index c55bf0eea274..b44a9f4b9b7f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/rt2x00/rt2x00debug.c | |||
@@ -120,12 +120,8 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
120 | struct sk_buff *skbcopy; | 120 | struct sk_buff *skbcopy; |
121 | struct rt2x00dump_hdr *dump_hdr; | 121 | struct rt2x00dump_hdr *dump_hdr; |
122 | struct timeval timestamp; | 122 | struct timeval timestamp; |
123 | unsigned int ring_index; | ||
124 | unsigned int entry_index; | ||
125 | 123 | ||
126 | do_gettimeofday(×tamp); | 124 | do_gettimeofday(×tamp); |
127 | ring_index = ARRAY_INDEX(desc->ring, rt2x00dev->rx); | ||
128 | entry_index = ARRAY_INDEX(desc->entry, desc->ring->entry); | ||
129 | 125 | ||
130 | if (!test_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags)) | 126 | if (!test_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags)) |
131 | return; | 127 | return; |
@@ -151,8 +147,8 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
151 | dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf); | 147 | dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf); |
152 | dump_hdr->chip_rev = cpu_to_le32(rt2x00dev->chip.rev); | 148 | dump_hdr->chip_rev = cpu_to_le32(rt2x00dev->chip.rev); |
153 | dump_hdr->type = cpu_to_le16(desc->frame_type); | 149 | dump_hdr->type = cpu_to_le16(desc->frame_type); |
154 | dump_hdr->ring_index = ring_index; | 150 | dump_hdr->ring_index = desc->ring->queue_idx; |
155 | dump_hdr->entry_index = entry_index; | 151 | dump_hdr->entry_index = desc->entry->entry_idx; |
156 | dump_hdr->timestamp_sec = cpu_to_le32(timestamp.tv_sec); | 152 | dump_hdr->timestamp_sec = cpu_to_le32(timestamp.tv_sec); |
157 | dump_hdr->timestamp_usec = cpu_to_le32(timestamp.tv_usec); | 153 | dump_hdr->timestamp_usec = cpu_to_le32(timestamp.tv_usec); |
158 | 154 | ||