diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-04-22 05:21:26 +0200 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2021-04-30 19:02:15 +0000 |
commit | 67b141c56742f8afc9088ac16449a7a06d8143e5 (patch) | |
tree | c43ad53aad1d6cff6f940fd7e56b0accfec5554a /src/osmo-bts-trx | |
parent | 7651b078b15c6d3b03d2ed62e27e883e02cda896 (diff) |
osmo-bts-trx: assert PDU version in trx_if_send_burst()
If somehow the TRXC logic negotiates a non-supported TRXD PDU version,
then it's a serious bug in the code. Let's add an assert() for that.
Change-Id: I301377bcebd5e2bbcfc18b3637253ef261bb5b2e
Diffstat (limited to 'src/osmo-bts-trx')
-rw-r--r-- | src/osmo-bts-trx/trx_if.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c index 073cad84..9e2cd751 100644 --- a/src/osmo-bts-trx/trx_if.c +++ b/src/osmo-bts-trx/trx_if.c @@ -1016,9 +1016,8 @@ int trx_if_send_burst(struct trx_l1h *l1h, const struct trx_dl_burst_req *br) break; default: - LOGPPHI(l1h->phy_inst, DTRX, LOGL_ERROR, - "Requested TRXD PDU version %u is not supported\n", pdu_ver); - return -ENOTSUP; + /* Shall not happen */ + OSMO_ASSERT(0); } buf[0] = ((pdu_ver & 0x0f) << 4) | br->tn; |