aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/calib_file.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-24calib: Attempt to fix the build for v2.7 of the api headersHolger Hans Peter Freyther1-0/+2
This should fix: calib_file.c: In function 'calib_eeprom_read': calib_file.c:262: error: 'SuperFemto_SetRxCalibTblReq_t' undeclared (first use in this function) calib_file.c:262: error: (Each undeclared identifier is reported only once calib_file.c:262: error: for each function it appears in.)
2013-06-24calib: Attempt to fix the build for v2.7 of the api headersHolger Hans Peter Freyther1-0/+2
This should fix: calib_file.c: In function 'calib_fixup_rx': calib_file.c:148: error: 'SuperFemto_SetRxCalibTblReq_t' undeclared (first use in this function) calib_file.c:148: error: (Each undeclared identifier is reported only once
2013-06-24sysmobts: Fix potential memory leaks in the prim callback handlingHolger Hans Peter Freyther1-0/+2
Make sure the l1msg is always freed in the callback. There were several error conditions were the msgb would not have been freed, in the case of the calib data and the system information the message was not freed even in normal condition. I will modify this code to __use a msgb. This allows to re-use the allocated msgb across read operations.
2013-06-22calib: Add fixup for incompatible calib data / firmware versionHarald Welte1-0/+49
For certain sysmoBTS units, a fixup to the calibration table is needed, if the firmware is >= 3.3.0.
2013-06-22calib: Read calibration data from EEPROM, not just filesHarald Welte1-3/+72
On v2D (and later) hardware, the calibration data can be read directly from the EEPROM and doesn't have to be read from files. If there is no trx-calib-path set in the VTY, we will read from EEPROM.
2013-02-27calib: Use 2.4.0 as cut-off for the firmware, log errorsHolger Hans Peter Freyther1-2/+6
In case opening a calibration file is failing an error will will be logged, the caller and implementation were inconsistent about the API version that is supported for the calibration data, attempt to make the cut-off at 2.4.0.
2013-02-27sysmobts: Remove the is_system_primitive from l1if_req_complHolger Hans Peter Freyther1-1/+1
All users (but the gsm_compl) of the l1if_req_compl use it with is_system_primitive=1. We can now remove this parameter from the method. Introduce _l1if_req_compl that will insert the item into the queue for us.
2013-02-27sysmobts: We can now pass the trx to the callback change the signaturesHolger Hans Peter Freyther1-3/+2
2013-02-27sysmobts: Remove the trx parameter from the signatureHolger Hans Peter Freyther1-1/+1
l1if_gsm_req_compl everyone is passing the trx as data pointer right now, remove it from the request procedure right now as it can be deducted from the femtol1_hdl.
2013-02-27sysmobts: Embed the calib state in the femtol1_hdl and use hdl->privHolger Hans Peter Freyther1-17/+9
2012-11-18Ensure osmo-bts builds agsainst sysmobts-v1 headers (again)Harald Welte1-0/+1
2012-10-28sysmobts: Add support for reading calibration tables0.1.0Harald Welte1-8/+80
'trx-calibration-path' is the new VTY command indicating the path name where the calibration files can be found. Calibration is only implemented for SUPERFEMTO API version 2.4.0 or later.
2012-10-27sysmobts: Add code to read calibration filesHarald Welte1-0/+202
... and convert them to L1 primitives. The code is not yet used.