diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-06-05 08:59:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-06-05 08:59:42 +0000 |
commit | 3600ab59e0c11b4d57a76fe7f82b9981438e2eca (patch) | |
tree | 16f764aaac8d67a914dafe59f43f3cffb5fe0bfa /target/linux/ramips/files/drivers/net | |
parent | 56597ee25b6e123260c44ad6e5c009b1bbf6c6e9 (diff) | |
download | master-187ad058-3600ab59e0c11b4d57a76fe7f82b9981438e2eca.tar.gz master-187ad058-3600ab59e0c11b4d57a76fe7f82b9981438e2eca.tar.bz2 master-187ad058-3600ab59e0c11b4d57a76fe7f82b9981438e2eca.zip |
ramips: fix ethernet vlan tx offload support check when delete
Signed-off-by: michael lee <igvtee@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45893 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/drivers/net')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c | 2 |
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); |