X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/14e805306a8d41030140a60119cee838b6e7cc93..0d15d1fe3ac822cd329492b1f9854c2c36fdc7ae:/target/linux/atheros/files/drivers/net/ar2313/ar2313.c diff --git a/target/linux/atheros/files/drivers/net/ar2313/ar2313.c b/target/linux/atheros/files/drivers/net/ar2313/ar2313.c index 1feca14c9..b6e2dcab3 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");