diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2020-03-29 18:39:46 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2020-04-01 01:46:44 +0700 |
commit | c4744ac24c686d53d8075f45ecbcc64bb46dc9fe (patch) | |
tree | 3f325a63fe05e0095e985cc82641d8f49164b3b9 /include/osmo-bts/gsm_data_shared.h | |
parent | ae4d85d891c6fde179f16db7eed0b6e3fa468705 (diff) |
l1sap: fix gsmtap_ph_rach(): properly pack 8-bit and 11-bit RA
According to 3GPP TS 44.004, section 7.4a, two alternative RACH
block formats are specified: 8 bit (1 octet) and 11 bit. The
bit order is little-endian (right to left).
In L1SAP PH-RACH.ind structure (see ph_rach_ind_param) we use
a field of type uint16_t to store RA values regardles of the
block format. Thus when packing it to bytes, we cannot just
cast uint16_t* to uint8_t*, we need to do some bit shifting.
Change-Id: I0e91d825bb2e1897647dd5403c311d833a89ff2e
Diffstat (limited to 'include/osmo-bts/gsm_data_shared.h')
0 files changed, 0 insertions, 0 deletions