summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-24 22:45:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-24 22:45:10 +0000
commit5d4837706aeca469368c0dbb8802b9fa919c8a7c (patch)
treee6b2cbfc5955c87a56d294fb6e6a0aa25b803ab8
parentb8303e033764b6fbfd74ab387ba880caed87827a (diff)
downloadmtk-20170518-5d4837706aeca469368c0dbb8802b9fa919c8a7c.zip
mtk-20170518-5d4837706aeca469368c0dbb8802b9fa919c8a7c.tar.gz
mtk-20170518-5d4837706aeca469368c0dbb8802b9fa919c8a7c.tar.bz2
ramips: fix ethernet vlan tx offload support check
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44115
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c2
1 files changed, 1 insertions, 1 deletions
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 54a1b9d..550b424 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)) {