diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-15 00:20:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-15 00:20:59 +0000 |
commit | a2f3d92663e1b8d0b7f92737e477a93c65c47dce (patch) | |
tree | 5f725e96e482cb7f7499b6dd508cbd8c6c7d4f5a /target/linux/adm5120/files/drivers/net/adm5120sw.c | |
parent | 548b5b892155bf195c4494b1440e1723e6c8ee30 (diff) | |
download | master-187ad058-a2f3d92663e1b8d0b7f92737e477a93c65c47dce.tar.gz master-187ad058-a2f3d92663e1b8d0b7f92737e477a93c65c47dce.tar.bz2 master-187ad058-a2f3d92663e1b8d0b7f92737e477a93c65c47dce.zip |
adm5120: fix promiscuous mode handling (patch from #8581)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26673 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files/drivers/net/adm5120sw.c')
-rw-r--r-- | target/linux/adm5120/files/drivers/net/adm5120sw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/adm5120/files/drivers/net/adm5120sw.c b/target/linux/adm5120/files/drivers/net/adm5120sw.c index 09cb9097e8..9adbf6cbef 100644 --- a/target/linux/adm5120/files/drivers/net/adm5120sw.c +++ b/target/linux/adm5120/files/drivers/net/adm5120sw.c @@ -962,10 +962,10 @@ static void adm5120_if_set_multicast_list(struct net_device *dev) /* to the CPU, the Bridge Test Mode has to be activated. */ /* Check if there is any vlan in promisc mode. */ - if (t & (SWITCH_PORTS_NOCPU << CPUP_CONF_DUNP_SHIFT)) - t &= ~CPUP_CONF_BTM; /* Disable Bridge Testing Mode */ - else + if (~t & (SWITCH_PORTS_NOCPU << CPUP_CONF_DUNP_SHIFT)) t |= CPUP_CONF_BTM; /* Enable Bridge Testing Mode */ + else + t &= ~CPUP_CONF_BTM; /* Disable Bridge Testing Mode */ sw_write_reg(SWITCH_REG_CPUP_CONF, t); |