[PATCH] osmocom-bb[master]: trxcon/scheduler: use TCH frame length defs from libosmocodec

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Feb 22 15:33:37 UTC 2018


Review at  https://gerrit.osmocom.org/6819

trxcon/scheduler: use TCH frame length defs from libosmocodec

Change-Id: I6439d3cadd2dc1fa8fe401eb61c977a12ec844f2
---
M src/host/trxcon/sched_lchan_common.c
M src/host/trxcon/sched_trx.h
2 files changed, 2 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/19/6819/1

diff --git a/src/host/trxcon/sched_lchan_common.c b/src/host/trxcon/sched_lchan_common.c
index 9eccc3e..52c9a21 100644
--- a/src/host/trxcon/sched_lchan_common.c
+++ b/src/host/trxcon/sched_lchan_common.c
@@ -33,6 +33,8 @@
 #include <osmocom/core/logging.h>
 #include <osmocom/core/bits.h>
 
+#include <osmocom/codec/codec.h>
+
 #include <osmocom/gsm/protocol/gsm_04_08.h>
 #include <osmocom/gsm/protocol/gsm_08_58.h>
 
diff --git a/src/host/trxcon/sched_trx.h b/src/host/trxcon/sched_trx.h
index 7ee1d47..b01624c 100644
--- a/src/host/trxcon/sched_trx.h
+++ b/src/host/trxcon/sched_trx.h
@@ -23,11 +23,6 @@
 
 #define MAX_A5_KEY_LEN		(128 / 8)
 
-/* TS 101318 Chapter 5.1: 260 bits + 4bit sig */
-#define GSM_FR_BYTES		33
-/* TS 101318 Chapter 5.3: 244 bits + 4bit sig */
-#define GSM_EFR_BYTES		31
-
 /* Forward declaration to avoid mutual include */
 struct trx_lchan_state;
 struct trx_instance;

-- 
To view, visit https://gerrit.osmocom.org/6819
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6439d3cadd2dc1fa8fe401eb61c977a12ec844f2
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list