aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-06-05 08:59:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-06-05 08:59:42 +0000
commit0d043d3ac0335c61debda3af315d37ff5dca9290 (patch)
tree799d422db0351d57246fbaaffde8e41892853491 /target/linux
parent4746e539e0e8ae2a80d02a8f7d9d7caea7f63886 (diff)
downloadupstream-0d043d3ac0335c61debda3af315d37ff5dca9290.tar.gz
upstream-0d043d3ac0335c61debda3af315d37ff5dca9290.tar.bz2
upstream-0d043d3ac0335c61debda3af315d37ff5dca9290.zip
ramips: fix ethernet vlan tx offload support check when delete
Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 45893
Diffstat (limited to 'target/linux')
-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 1822feac7e..60c3c91246 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
@@ -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);