From: Felix Fietkau Date: Sat, 24 Jan 2015 22:45:10 +0000 (+0000) Subject: ramips: fix ethernet vlan tx offload support check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3afcae54b88543550a72b4877ca362fd1782450c;p=openwrt%2Fsvn-archive%2Farchive.git ramips: fix ethernet vlan tx offload support check Signed-off-by: Felix Fietkau SVN-Revision: 44115 --- diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c index 54a1b9d6f8..550b424835 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c @@ -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)) {