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
This commit is contained in:
Vadim Yanitskiy 2017-12-16 15:09:51 +07:00
parent af217395cc
commit ab566a7aef
1 changed files with 3 additions and 2 deletions

View File

@ -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;