aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-07-04 08:56:07 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-07-08 14:16:04 -0400
commitff352391acfac1e183c8c8b2858f9393bd064a65 (patch)
tree33beda14985f49a09fed0a7d9ff2339554f8471a /drivers/net/wireless
parent50db7875d9dcd89f7624b13535738612faf8db0c (diff)
rt2x00: Decrease alignment headroom
We only need 4 bytes of headroom for alignment purposes in the RX frame. It was previously higher for optimization purposes which are no longer possible due to DMA mappings. v2: Fix patch error Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c
index 8e86611791f0..3ddce538ef4a 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.c
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.c
@@ -45,10 +45,11 @@ struct sk_buff *rt2x00queue_alloc_rxskb(struct rt2x00_dev *rt2x00dev,
45 frame_size = entry->queue->data_size + entry->queue->desc_size; 45 frame_size = entry->queue->data_size + entry->queue->desc_size;
46 46
47 /* 47 /*
48 * Reserve a few bytes extra headroom to allow drivers some moving 48 * The payload should be aligned to a 4-byte boundary,
49 * space (e.g. for alignment), while keeping the skb aligned. 49 * this means we need at least 3 bytes for moving the frame
50 * into the correct offset.
50 */ 51 */
51 reserved_size = 8; 52 reserved_size = 4;
52 53
53 /* 54 /*
54 * Allocate skbuffer. 55 * Allocate skbuffer.