ramips: fix ethernet vlan tx offload support check
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 24 Jan 2015 22:45:10 +0000 (22:45 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 24 Jan 2015 22:45:10 +0000 (22:45 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44115 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c

index 54a1b9d..550b424 100644 (file)
@@ -484,7 +484,7 @@ static int fe_vlan_rx_add_vid(struct net_device *dev,
        u32 vlan_cfg;
 
        if (!((fe_reg_table[FE_REG_FE_DMA_VID_BASE]) &&
-                       (dev->features | NETIF_F_HW_VLAN_CTAG_TX)))
+                       (dev->features & NETIF_F_HW_VLAN_CTAG_TX)))
                return 0;
 
        if (test_bit(idx, &priv->vlan_map)) {