diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-16 15:09:51 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-16 15:24:54 +0700 |
commit | ab566a7aef67eeb2abd19fedc7ed8fc33e9de684 (patch) | |
tree | 99ef8b721aee64f6d920e728a18e559a462d7f50 /src/host/trxcon | |
parent | af217395ccd058a8aeab6992c0bd0743a8e6895e (diff) |
host/trxcon/scheduler: use new libosmocoding API for RACH
Since the 32e5641d, the gsm0503_rach_encode() is deprecated, and
the library provides new API with extended (11-bit) RACH support.
Change-Id: I1955fe46eebd173d6eddd1d47ee9f7318b9b4e2d
Diffstat (limited to 'src/host/trxcon')
-rw-r--r-- | src/host/trxcon/sched_lchan_rach.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/host/trxcon/sched_lchan_rach.c b/src/host/trxcon/sched_lchan_rach.c index 82017836..bf81fd21 100644 --- a/src/host/trxcon/sched_lchan_rach.c +++ b/src/host/trxcon/sched_lchan_rach.c @@ -26,6 +26,7 @@ #include <string.h> #include <talloc.h> #include <stdint.h> +#include <stdbool.h> #include <osmocom/core/linuxlist.h> #include <osmocom/core/logging.h> @@ -70,8 +71,8 @@ int tx_rach_fn(struct trx_instance *trx, struct trx_ts *ts, if (req->offset-- > 0) return 0; - /* Encode payload */ - rc = gsm0503_rach_encode(payload, &req->ra, trx->bsic); + /* Encode (8-bit) payload */ + rc = gsm0503_rach_ext_encode(payload, req->ra, trx->bsic, false); if (rc) { LOGP(DSCHD, LOGL_ERROR, "Could not encode RACH burst\n"); return rc; |