Commit Graph

7 Commits

Author SHA1 Message Date
wbokslag 1f48ec8627 added support for fill bits and basic link defragmentation (also thanks to SQ5BPF)
The upper mac now maintains a defragmentation buffer for each timeslot. Resources with length -1 (fragmentation start) are added to the buf for that slot, further mac/frag frames are appended. When a mac/end is encountered, the reconstructed l2 message is passed to rx_tm_sdu. The tetra_llc_pdu struct now uses a uint32_t for tl_sdu_len in order to account for the possibly longer sdus. Fill bits processing was required in order to reliably determine the end of a MAC PDU.

Change-Id: I41c9438b0b12c2fac9dff1b226eec5b33f30fbb4
2022-09-22 11:46:29 +02:00
wbokslag a5bc24792b Improved parsing in macpdu_decode_resource
fill_bits and grant_position bits are now parsed and stored in the tetra_resrc_decoded struct
A flag is_encrypted is set to to true if resource was not encrypted or if the calling function
states that the frame has been decrypted successfully before passing it to tetra_resrc_decoded.
Lastly, the channel_alloc element is only parsed if the frame is unencrypted.

Change-Id: I6c85c93b70a34e01fd1a96a863f0e113be6424d3
2022-08-02 12:32:55 +02:00
luckyhacky 6f78d76052 removed hard coded values - exchanged it with enum for better readability 2015-08-21 01:49:02 +02:00
luckyhacky 83140af8d0 extended sysinfo as described in section 21.4.4.1
now every transmitted field in sysinfo is analyzed
2015-08-21 01:48:46 +02:00
Harald Welte 863c31401b MAC: correctly decode length of MAC PDU 2011-04-24 08:07:27 +02:00
Harald Welte 8c2db3d630 fix parsing of slot granting in RESOURCE MAC PDU 2011-04-24 07:51:31 +02:00
Harald Welte 7ee08faee0 initial import of Osmocom TETRA phy and lower MAC code 2011-01-19 10:39:59 +01:00