ramips: fix ethernet vlan tx offload support check when delete
[openwrt/svn-archive/archive.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / ralink_soc_eth.c
index 1822feac7ec1989cd20d39a70007d35f15da52d2..60c3c9124689c23187a093e7a9fb5d433b6610f7 100644 (file)
@@ -514,7 +514,7 @@ static int fe_vlan_rx_kill_vid(struct net_device *dev,
        u32 idx = (vid & 0xf);
 
        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;
 
        clear_bit(idx, &priv->vlan_map);