summaryrefslogtreecommitdiff
path: root/package/switch/src
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-11-03 20:35:37 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-11-03 20:35:37 +0000
commit5a13cc0726380ef3bef2e96fef984fa2216c53cd (patch)
tree162b9499e95a8a758d1faffa56335a774f375db6 /package/switch/src
parent9a84de9e010fe1bb6d3bae6ed41d5205555a1913 (diff)
downloadmtk-20170518-5a13cc0726380ef3bef2e96fef984fa2216c53cd.zip
mtk-20170518-5a13cc0726380ef3bef2e96fef984fa2216c53cd.tar.gz
mtk-20170518-5a13cc0726380ef3bef2e96fef984fa2216c53cd.tar.bz2
fix breakage on wl500gp after r18214, thanks sn9 (#6084)
SVN-Revision: 18289
Diffstat (limited to 'package/switch/src')
-rw-r--r--package/switch/src/switch-robo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c
index 481bb76..9f06896 100644
--- a/package/switch/src/switch-robo.c
+++ b/package/switch/src/switch-robo.c
@@ -500,8 +500,8 @@ static int handle_enable_vlan_write(void *driver, char *buf, int nr)
robo_write16(ROBO_VLAN_PAGE, ROBO_VLAN_CTRL0, disable ? 0 :
(1 << 7) /* 802.1Q VLAN */ | (3 << 5) /* mac check and hash */);
robo_write16(ROBO_VLAN_PAGE, ROBO_VLAN_CTRL1, disable ? 0 :
- (robo.devid == ROBO_DEVICE_ID_5325 ? (1 << 1) : 0) | /* RSV multicast */
- robo_read16(ROBO_VLAN_PAGE, ROBO_VLAN_CTRL0) | (1 << 2) | (1 << 3));
+ (robo.devid == ROBO_DEVICE_ID_5325 ? (1 << 1) :
+ 0) | (1 << 2) | (1 << 3)); /* RSV multicast */
if (robo.devid != ROBO_DEVICE_ID_5325)
return 0;