summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-12-27 19:35:13 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-12-27 19:35:13 +0000
commite1bdcce850872c403681a219bdcf3049704c1aad (patch)
treefd3402a81e2f7d05af725d01530c5d8017e337c1
parent9d9470d08626b2c22c8cb26f368704decedce2cc (diff)
Fix the counters bug (#983)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5910 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/switch/src/switch-adm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/switch/src/switch-adm.c b/package/switch/src/switch-adm.c
index 718096b026..85805f6b3a 100644
--- a/package/switch/src/switch-adm.c
+++ b/package/switch/src/switch-adm.c
@@ -223,7 +223,7 @@ static __u32 adm_rreg(__u8 table, __u8 addr)
__u8 bits[6] = {
0xFF, 0xFF, 0xFF, 0xFF,
(0x06 << 4) | ((table & 0x01) << 3 | (addr&64)>>6),
- ((addr&62)<<2)
+ ((addr&63)<<2)
};
__u8 rbits[4];