From 8194febb09f75c9027d52e8376b679d3327e97a3 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 30 Jul 2020 18:28:46 +0700 Subject: layer23/mobile: implement handling of TCH test loop commands For more information, see 3GPP TS 44.014, sections: - 5.1 "Single-slot TCH loops", and - 8 "Message definitions and contents". This feature has nothing to do with the Mobility Management, so let's handle GSM48_PDISC_TEST messages in the Radio Resources layer implementation (gsm48_mm.c -> gsm48_rr.c). Change-Id: If8efc57c7017aa8ea47b37c472d1bbb1914389ca --- src/host/layer23/include/osmocom/bb/common/l1ctl.h | 2 +- src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/host/layer23/include') diff --git a/src/host/layer23/include/osmocom/bb/common/l1ctl.h b/src/host/layer23/include/osmocom/bb/common/l1ctl.h index e4dbdedc..02ffa343 100644 --- a/src/host/layer23/include/osmocom/bb/common/l1ctl.h +++ b/src/host/layer23/include/osmocom/bb/common/l1ctl.h @@ -49,7 +49,7 @@ int l1ctl_tx_ccch_mode_req(struct osmocom_ms *ms, uint8_t ccch_mode); /* Transmit TCH_MODE_REQ */ int l1ctl_tx_tch_mode_req(struct osmocom_ms *ms, uint8_t tch_mode, - uint8_t audio_mode); + uint8_t audio_mode, uint8_t tch_loop_mode); /* Transmit ECHO_REQ */ int l1ctl_tx_echo_req(struct osmocom_ms *ms, unsigned int len); diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h b/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h index 6996ff35..9b499a6b 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h +++ b/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h @@ -188,6 +188,9 @@ struct gsm48_rrlayer { /* audio flow */ uint8_t audio_mode; + /* 3GPP TS 44.014 TCH test loop mode (L1CTL specific format) */ + uint8_t tch_loop_mode; + /* sapi 3 */ uint8_t sapi3_state; uint8_t sapi3_link_id; -- cgit v1.2.3