From: Felix Fietkau Date: Thu, 24 Jan 2008 20:04:24 +0000 (+0000) Subject: add atheros ar2313 vlan fix (thx, SeG) X-Git-Tag: 8.09_rc1~1791 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dc584fc1af70e0813189ac04548ffa2e4bbf574e;p=openwrt%2Fsvn-archive%2Fopenwrt.git add atheros ar2313 vlan fix (thx, SeG) SVN-Revision: 10238 --- 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");