diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-16 15:04:41 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-16 15:45:12 +0700 |
commit | d2c13e3d209565a4bd1c6776e3a5a86f7ea5d857 (patch) | |
tree | 2538049db1481d4135dd5adf5dfe441e4bb9867f /src/host/trxcon/sched_lchan_common.c | |
parent | 3d872d0eae76b42b0fdf235f2df196c8bc5abb7c (diff) |
host/trxcon/scheduler: use GSM_MACBLOCK_LEN definition
Change-Id: Ie3b27ecb62d6f0e84f2e3ec0c1558e32bb213d33
Diffstat (limited to 'src/host/trxcon/sched_lchan_common.c')
-rw-r--r-- | src/host/trxcon/sched_lchan_common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/host/trxcon/sched_lchan_common.c b/src/host/trxcon/sched_lchan_common.c index 8f061659..925a4415 100644 --- a/src/host/trxcon/sched_lchan_common.c +++ b/src/host/trxcon/sched_lchan_common.c @@ -32,6 +32,8 @@ #include <osmocom/core/logging.h> #include <osmocom/core/bits.h> +#include <osmocom/gsm/protocol/gsm_04_08.h> + #include "l1ctl_proto.h" #include "scheduler.h" #include "sched_trx.h" @@ -106,7 +108,7 @@ int sched_send_data_ind(struct trx_instance *trx, struct trx_ts *ts, memcpy(data->payload, l2, l2_len); /* Put a packet to higher layers */ - l1ctl_tx_data_ind(trx->l1l, data, l2_len == 23 ? + l1ctl_tx_data_ind(trx->l1l, data, l2_len == GSM_MACBLOCK_LEN ? L1CTL_DATA_IND : L1CTL_TRAFFIC_IND); talloc_free(data); @@ -135,7 +137,7 @@ int sched_send_data_conf(struct trx_instance *trx, struct trx_ts *ts, data->frame_nr = htonl(fn); /* Choose a confirmation type */ - conf_type = l2_len == 23 ? + conf_type = l2_len == GSM_MACBLOCK_LEN ? L1CTL_DATA_CONF : L1CTL_TRAFFIC_CONF; l1ctl_tx_data_conf(trx->l1l, data, conf_type); |