add atheros ar2313 vlan fix (thx, SeG)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 24 Jan 2008 20:04:24 +0000 (20:04 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 24 Jan 2008 20:04:24 +0000 (20:04 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10238 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 1feca14..b6e2dca 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");
This page took 0.025984 seconds and 4 git commands to generate.