ramips: Fix bridging in ramips ethernet driver
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 13 Jul 2010 16:52:07 +0000 (16:52 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 13 Jul 2010 16:52:07 +0000 (16:52 +0000)
commitfa4dd3d5dea2da3fdb89c60560d5b5a24501a478
treef4b60112cab5b2c6f9881343ff662a90cfa11937
parent675367fe81153522bd3d3d48a1263422755091e4
ramips: Fix bridging in ramips ethernet driver

Bridging between the ramips ethernet driver and rt2800pci was somewhat
broken. Frames received by the ethernet driver which were passed to the
wifi driver for transmission were sometimes corrupted or sent out with
huge delays.

The reason for this is the missing assignment of skb->tail in the ramips
ethernet driver's rx path resulting in skb->tail pointing to skb->data.
Since skb->tail is used by mac80211 it writes into skb->data which messes
up the frames content.

Fix this by using skb_put to correctly set skb->len and skb->tail.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22172 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ramips/files/drivers/net/ramips.c
This page took 0.027064 seconds and 4 git commands to generate.