mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-02 05:03:18 +00:00
trxd_fill_common(): fix TRXD header version coding
The header version field is 4 bit long, so the mask 0x07 == 0b111 is wrong, it should actually be 0x0f == 0b1111. Change-Id: I290931559ce01cf6e43470b18855c46808d6c2a5
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
static void trxd_fill_common(struct trxd_hdr_common *common, const struct trx_ul_burst_ind *bi, uint8_t version)
|
||||
{
|
||||
common->version = version & 0x07;
|
||||
common->version = version & 0b1111;
|
||||
common->reserved = 0;
|
||||
common->tn = bi->tn;
|
||||
osmo_store32be(bi->fn, &common->fn);
|
||||
|
Reference in New Issue
Block a user