From 7c4142755b3666b40e72c90d8a368cf401dfa89c Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 27 Dec 2006 19:35:13 +0000 Subject: [PATCH] Fix the counters bug (#983) SVN-Revision: 5910 --- openwrt/target/linux/package/switch/src/switch-adm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/target/linux/package/switch/src/switch-adm.c b/openwrt/target/linux/package/switch/src/switch-adm.c index 423c5a88d3..4ae360dc0a 100644 --- a/openwrt/target/linux/package/switch/src/switch-adm.c +++ b/openwrt/target/linux/package/switch/src/switch-adm.c @@ -215,7 +215,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]; -- 2.30.2