projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools/firmware-utils: add support for hd_id tag into mkdniimg
[openwrt.git]
/
target
/
linux
/
adm5120
/
files
/
drivers
/
net
/
adm5120sw.c
diff --git
a/target/linux/adm5120/files/drivers/net/adm5120sw.c
b/target/linux/adm5120/files/drivers/net/adm5120sw.c
index
09cb909
..
9adbf6c
100644
(file)
--- 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. */
/* 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 */
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);
sw_write_reg(SWITCH_REG_CPUP_CONF, t);
This page took
0.028923 seconds
and
4
git commands to generate.