aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index ce1f7bbd3d7a..9ea677320daa 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -565,13 +565,9 @@ void rt2x00lib_rxdone(struct queue_entry *entry,
565 565
566 /* 566 /*
567 * The data behind the ieee80211 header must be 567 * The data behind the ieee80211 header must be
568 * aligned on a 4 byte boundary. We already reserved 568 * aligned on a 4 byte boundary.
569 * 2 bytes for header_size % 4 == 2 optimization.
570 * To determine the number of bytes which the data
571 * should be moved to the left, we must add these
572 * 2 bytes to the header_size.
573 */ 569 */
574 align = (header_size + 2) % 4; 570 align = ((unsigned long)(entry->skb->data + header_size)) & 3;
575 571
576 if (align) { 572 if (align) {
577 skb_push(entry->skb, align); 573 skb_push(entry->skb, align);