diff options
| author | Holger Brunck <[email protected]> | 2011-09-20 05:05:55 +0000 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2011-09-21 23:38:41 +0200 |
| commit | 6478021f12db3e248b8b495dde02c51d05a38054 (patch) | |
| tree | d13ddd57fc13f9da1ee1109853623646898d877e | |
| parent | 3f96ee334756135a8e3e4ec2f29308e9bc88f102 (diff) | |
km/common: fix bug in IVM mac address access
The MAC address stored in the inventory eeprom begins at offset 1.
Signed-off-by: Holger Brunck <[email protected]>
Signed-off-by: Valentin Longchamp <[email protected]>
cc: Wolfgang Denk <[email protected]>
| -rw-r--r-- | board/keymile/common/ivm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index d0cb0d227f1..bcf3aed97e3 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -206,8 +206,8 @@ static int ivm_analyze_block2(unsigned char *buf, int len) unsigned char valbuf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN]; unsigned long count; - /* IVM_MacAddress */ - sprintf((char *)valbuf, "%pM", buf); + /* IVM_MAC Adress begins at offset 1 */ + sprintf((char *)valbuf, "%pM", buf + 1); ivm_set_value("IVM_MacAddress", (char *)valbuf); /* if an offset is defined, add it */ #if defined(CONFIG_PIGGY_MAC_ADRESS_OFFSET) |
