diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-06-22 18:41:11 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-06-22 19:30:55 +0200 |
commit | 40ca16766d3820385d26bb06856fdb5b94f9e33e (patch) | |
tree | 6fd7e3217d1bb4c1d917e472a315cfb0fc93fb68 /src/osmo-bts-sysmo/eeprom.c | |
parent | 256326775781b6c46ebbe0ccf311e2d971b9de9a (diff) |
calib: Add fixup for incompatible calib data / firmware version
For certain sysmoBTS units, a fixup to the calibration table is needed,
if the firmware is >= 3.3.0.
Diffstat (limited to 'src/osmo-bts-sysmo/eeprom.c')
-rw-r--r-- | src/osmo-bts-sysmo/eeprom.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/eeprom.c b/src/osmo-bts-sysmo/eeprom.c index f83e0b7e..e96d2197 100644 --- a/src/osmo-bts-sysmo/eeprom.c +++ b/src/osmo-bts-sysmo/eeprom.c @@ -298,6 +298,18 @@ eeprom_Error_t eeprom_ResetCfg( void ) } +eeprom_Error_t eeprom_ReadEthAddr( uint8_t *ethaddr ) +{ + int err; + + err = eeprom_read(0, 6, ethaddr); + if ( err != 6 ) + { + return EEPROM_ERR_DEVICE; + } + return EEPROM_SUCCESS; +} + /**************************************************************************** * Function : eeprom_ReadSysInfo ************************************************************************//** |