add atheros ar2313 vlan fix (thx, SeG)
authorFelix Fietkau <nbd@openwrt.org>
Thu, 24 Jan 2008 20:04:24 +0000 (20:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 24 Jan 2008 20:04:24 +0000 (20:04 +0000)
SVN-Revision: 10238

target/linux/atheros/files/drivers/net/ar2313/ar2313.c

index 1feca14c965c0cbb7f6f6dbe034c2dd7ccdf8dbb..b6e2dcab35904714eedf0eaf107cff74f585dbff 100644 (file)
 #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");