aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysmo_l1_if.c
AgeCommit message (Collapse)AuthorFilesLines
2015-08-28l1: Use the FN of all data_ind/ra_ind DSP messagesJacob Erlbeck1-0/+4
Currently all of these messages are discarded if they are assumend to be caused by noise. But even in these cases, the FN and TN values which are added by the DSP are valid. So these can be used to update the current_frame value. The osmo-bts sets the fBFILevel of a physical channel to -200dB if it is used for PDTCH or PACCH which is the case for all PDCH. This way a data_ind or ra_ind message is already send at least once per block period (4 frames) per PDCH. These messages are passed to either handle_ph_data_ind or handle_ph_ra_ind even if they contain garbage data. The ra_ind messages are sometimes sent a few frames earlier than data_ind messages using the same frame. This commit adds calls to update the current_frame value based on all of these messages before they are discarded. The FN taken from ra_ind are passed with an increased max_delay (5) to compensate for early ra_ind messages. Sponsored-by: On-Waves ehf
2015-06-22l1: Pass all L1 measurements upwardsJacob Erlbeck1-3/+15
Currently only the RSSI value is passed to the upper layers. Other values like TA and BER which are needed for TA update respectively CS selection are not propagated. This commit introduces and passes a struct that contains a set of measurement values. Sponsored-by: On-Waves ehf
2015-06-08l1: Fix warning by logging acc_delayJacob Erlbeck1-0/+6
The acc_delay value is computed but not used, resulting in a warning. This commit adds a logging message it case the function is executed to make the warning disappear. It also adds a CPP warning to remind of the incomplete implementation. Addresses: sysmo_l1_if.c:226:10: error: variable ‘acc_delay’ set but not used [-Werror=unused-but-set-variable] Sponsored-by: On-Waves ehf
2015-05-22write_queue: Check the result of osmo_wqueue_enqueue and freeHolger Hans Peter Freyther1-2/+8
The write_queue is designed to have a maximum amount of pending messages and will refuse to take new messages when it has been reached. The caller can decide if it wants to flush the queue and add the message again, create a log. But in all cases the ownership of the msgb has not been transferred. Fix the potential memory leak in the failure situation.
2015-02-26pcu: Fix log messageJacob Erlbeck1-1/+1
This commit adds a missing LF to a log message. Sponsored-by: On-Waves ehf
2014-06-16sysmobts: Add a hot-fix to avoid dumping -1 amount of dataHolger Hans Peter Freyther1-5/+16
2014-01-09sysmo_l1_if: Fix off-by-one bug when sending UL messages to gsmtapDaniel Willmann1-2/+2
The first byte in data_ind->msgUnitParam.u8Buffer is not part of the GSM frame, but something else, it is also skipped in the call to pcu_rx_data_ind_pdtch(). This patch fixes GSM RLC/MAC UL packet decoding in wireshark, especially ACK/NACK packets are now displayed correctly (amongst others).
2013-03-17Add RSSI of data blocks to PCU interface0.2.00.2Andreas Eversberg1-1/+2
This bumps the PCU API version to 5 and requires osmo-bts >= 0.2.0.
2013-01-16Free each fl1h (sysmo-bts' layer 1 handler) when closing BTS<->PCU socketAndreas Eversberg1-1/+2
2013-01-16Use global PCU's talloc context for all talloc callsAndreas Eversberg1-1/+3
This allows to track memory leaks of all memory that is allocated by talloc. Especially bitvector allocations is tracked now.
2012-12-18Adding direct access to DSP of sysmoBTS for PDTCH trafficeAndreas Eversberg1-0/+353
In order to use this feature, sysmoBTS requires option "-M", otherwise the traffic is forwarded through socket interface. This is essential, if PCU runs on processor of sysmoBTS. The reaction time and delay of PDTCH frames could heavily degrade proper packet flow.