aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-12-27 19:35:13 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-12-27 19:35:13 +0000
commitabd458dae6f1798069a2aa67d73893ba2ffae781 (patch)
tree0f3fbfe39ca1e8f75212d8e704dc6e915d6df5bb /package/switch/src
parentd78cd65a59f4c7b008893c46ef2b1899ccacfaf9 (diff)
downloadupstream-abd458dae6f1798069a2aa67d73893ba2ffae781.tar.gz
upstream-abd458dae6f1798069a2aa67d73893ba2ffae781.tar.bz2
upstream-abd458dae6f1798069a2aa67d73893ba2ffae781.zip
Fix the counters bug (#983)
SVN-Revision: 5910
Diffstat (limited to 'package/switch/src')
-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];