diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 10 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 13 |
3 files changed, 0 insertions, 25 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index d63b582b6875..55c1d0332b2a 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -512,8 +512,6 @@ void rt2x00lib_rxdone(struct queue_entry *entry) | |||
512 | (rxdesc.size > header_length) && | 512 | (rxdesc.size > header_length) && |
513 | (rxdesc.dev_flags & RXDONE_L2PAD)) | 513 | (rxdesc.dev_flags & RXDONE_L2PAD)) |
514 | rt2x00queue_remove_l2pad(entry->skb, header_length); | 514 | rt2x00queue_remove_l2pad(entry->skb, header_length); |
515 | else | ||
516 | rt2x00queue_align_payload(entry->skb, header_length); | ||
517 | 515 | ||
518 | /* Trim buffer to correct size */ | 516 | /* Trim buffer to correct size */ |
519 | skb_trim(entry->skb, rxdesc.size); | 517 | skb_trim(entry->skb, rxdesc.size); |
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index 2d94cbaf5f4a..63c40d457244 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -119,16 +119,6 @@ void rt2x00queue_free_skb(struct queue_entry *entry); | |||
119 | void rt2x00queue_align_frame(struct sk_buff *skb); | 119 | void rt2x00queue_align_frame(struct sk_buff *skb); |
120 | 120 | ||
121 | /** | 121 | /** |
122 | * rt2x00queue_align_payload - Align 802.11 payload to 4-byte boundary | ||
123 | * @skb: The skb to align | ||
124 | * @header_length: Length of 802.11 header | ||
125 | * | ||
126 | * Align the 802.11 payload to a 4-byte boundary, this could | ||
127 | * mean the header is not aligned properly though. | ||
128 | */ | ||
129 | void rt2x00queue_align_payload(struct sk_buff *skb, unsigned int header_length); | ||
130 | |||
131 | /** | ||
132 | * rt2x00queue_insert_l2pad - Align 802.11 header & payload to 4-byte boundary | 122 | * rt2x00queue_insert_l2pad - Align 802.11 header & payload to 4-byte boundary |
133 | * @skb: The skb to align | 123 | * @skb: The skb to align |
134 | * @header_length: Length of 802.11 header | 124 | * @header_length: Length of 802.11 header |
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 4b3c70eeef1f..5d8925991ffb 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -148,19 +148,6 @@ void rt2x00queue_align_frame(struct sk_buff *skb) | |||
148 | skb_trim(skb, frame_length); | 148 | skb_trim(skb, frame_length); |
149 | } | 149 | } |
150 | 150 | ||
151 | void rt2x00queue_align_payload(struct sk_buff *skb, unsigned int header_length) | ||
152 | { | ||
153 | unsigned int frame_length = skb->len; | ||
154 | unsigned int align = ALIGN_SIZE(skb, header_length); | ||
155 | |||
156 | if (!align) | ||
157 | return; | ||
158 | |||
159 | skb_push(skb, align); | ||
160 | memmove(skb->data, skb->data + align, frame_length); | ||
161 | skb_trim(skb, frame_length); | ||
162 | } | ||
163 | |||
164 | void rt2x00queue_insert_l2pad(struct sk_buff *skb, unsigned int header_length) | 151 | void rt2x00queue_insert_l2pad(struct sk_buff *skb, unsigned int header_length) |
165 | { | 152 | { |
166 | unsigned int payload_length = skb->len - header_length; | 153 | unsigned int payload_length = skb->len - header_length; |