diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-07-20 14:17:45 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-07-20 19:39:18 +0700 |
commit | 6fa906c28071b72058b98df91f743a860ffbad98 (patch) | |
tree | c1e23c96c2aa3ff4104835ae0ed0bc2e84c4d18b | |
parent | a7ba484fb2b84d7a9bb21bb3dfd361898b952c4c (diff) |
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
-rw-r--r-- | Transceiver52M/proto_trxd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/proto_trxd.c b/Transceiver52M/proto_trxd.c index cd82d55..fbef77a 100644 --- a/Transceiver52M/proto_trxd.c +++ b/Transceiver52M/proto_trxd.c @@ -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); |