Browse Source

Fix the counters bug (#983)

SVN-Revision: 5910
Florian Fainelli 19 years ago
parent
commit
abd458dae6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/switch/src/switch-adm.c

+ 1 - 1
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];