diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-01-24 20:04:24 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-01-24 20:04:24 +0000 |
commit | 0f80201533135f58ea936057cd84b65e062d8feb (patch) | |
tree | 9251ad2ef639989f955a198f624cafe489ec2d7f /target/linux/atheros/files/drivers/net | |
parent | d94caed1aefc25605e626cc1444efe9f4de1aadf (diff) | |
download | upstream-0f80201533135f58ea936057cd84b65e062d8feb.tar.gz upstream-0f80201533135f58ea936057cd84b65e062d8feb.tar.bz2 upstream-0f80201533135f58ea936057cd84b65e062d8feb.zip |
add atheros ar2313 vlan fix (thx, SeG)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10238 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/files/drivers/net')
-rw-r--r-- | target/linux/atheros/files/drivers/net/ar2313/ar2313.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/atheros/files/drivers/net/ar2313/ar2313.c b/target/linux/atheros/files/drivers/net/ar2313/ar2313.c index 1feca14c96..b6e2dcab35 100644 --- a/target/linux/atheros/files/drivers/net/ar2313/ar2313.c +++ b/target/linux/atheros/files/drivers/net/ar2313/ar2313.c @@ -134,7 +134,13 @@ #define CRC_LEN 4 #define RX_OFFSET 2 -#define AR2313_BUFSIZE (AR2313_MTU + ETH_HLEN + CRC_LEN + RX_OFFSET) +#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) +#define VLAN_HDR 4 +#else +#define VLAN_HDR 0 +#endif + +#define AR2313_BUFSIZE (AR2313_MTU + VLAN_HDR + ETH_HLEN + CRC_LEN + RX_OFFSET) #ifdef MODULE MODULE_LICENSE("GPL"); |