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:
parent
af217395cc
commit
ab566a7aef
|
@ -26,6 +26,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <talloc.h>
|
#include <talloc.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include <osmocom/core/linuxlist.h>
|
#include <osmocom/core/linuxlist.h>
|
||||||
#include <osmocom/core/logging.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)
|
if (req->offset-- > 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Encode payload */
|
/* Encode (8-bit) payload */
|
||||||
rc = gsm0503_rach_encode(payload, &req->ra, trx->bsic);
|
rc = gsm0503_rach_ext_encode(payload, req->ra, trx->bsic, false);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
LOGP(DSCHD, LOGL_ERROR, "Could not encode RACH burst\n");
|
LOGP(DSCHD, LOGL_ERROR, "Could not encode RACH burst\n");
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Reference in New Issue