port atheros to 2.6.24 (untested), but do not use the new kernel by default yet
[openwrt.git] / target / linux / atheros / files / drivers / net / ar2313 / ar2313.c
index 1feca14..a2bd7e5 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");
@@ -180,7 +186,6 @@ int __init ar2313_probe(struct platform_device *pdev)
                return -ENOMEM;
        }
 
-       SET_MODULE_OWNER(dev);
        platform_set_drvdata(pdev, dev);
 
        sp = dev->priv;
This page took 0.022762 seconds and 4 git commands to generate.