open5gs/lib/nas
Bostjan Meglic 22cca3eb48 [NAS] Improve algorithm for conversion of bitrate to NAS
The improved algorithm better handles some odd bitrates.
With the current version, the bitrates 63 Kbps and 65 Kbps would get
converted into 48 Kbps (unit 16 Kbps x 3) and 64 Kbps (unit 64 Kbps x
1).
Especially in the first case, the conversion error is quite signicant.

Current version tries to find the biggest 'unit', while the 'value' is
still above 0.
With the updated version, the algorithm tries to find the 'unit' low
enough, that the resulting 'value' can still fit into the 16-bit space
without overflow.
2023-06-03 09:19:52 +09:00
..
5gs [AMF/MME] Support TAI Range 2023-03-19 18:31:45 +09:00
common [NAS] Improve algorithm for conversion of bitrate to NAS 2023-06-03 09:19:52 +09:00
eps [AMF/MME] Support TAI Range 2023-03-19 18:31:45 +09:00
meson.build NAS-5GS is added 2020-05-21 21:24:21 -04:00