summaryrefslogtreecommitdiff
path: root/target/linux/atheros
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-01-24 20:04:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-01-24 20:04:24 +0000
commitdc584fc1af70e0813189ac04548ffa2e4bbf574e (patch)
tree196099f453165c58c441c065a401322678fbdbc0 /target/linux/atheros
parent3829f7b3f1ce44131a25f34d3c21ee33ab1ba7fa (diff)
downloadmtk-20170518-dc584fc1af70e0813189ac04548ffa2e4bbf574e.zip
mtk-20170518-dc584fc1af70e0813189ac04548ffa2e4bbf574e.tar.gz
mtk-20170518-dc584fc1af70e0813189ac04548ffa2e4bbf574e.tar.bz2
add atheros ar2313 vlan fix (thx, SeG)
SVN-Revision: 10238
Diffstat (limited to 'target/linux/atheros')
-rw-r--r--target/linux/atheros/files/drivers/net/ar2313/ar2313.c8
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 1feca14..b6e2dca 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");