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/src/common/l1ctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/host/layer23/src/common/l1ctl.c') diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c index 54c7452a..da30767c 100644 --- a/src/host/layer23/src/common/l1ctl.c +++ b/src/host/layer23/src/common/l1ctl.c @@ -461,7 +461,7 @@ int l1ctl_tx_ccch_mode_req(struct osmocom_ms *ms, uint8_t ccch_mode) /* Transmit L1CTL_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) { struct msgb *msg; struct l1ctl_tch_mode_req *req; @@ -475,6 +475,7 @@ int l1ctl_tx_tch_mode_req(struct osmocom_ms *ms, uint8_t tch_mode, req = (struct l1ctl_tch_mode_req *) msgb_put(msg, sizeof(*req)); req->tch_mode = tch_mode; req->audio_mode = audio_mode; + req->tch_loop_mode = tch_loop_mode; return osmo_send_l1(ms, msg); } -- cgit v1.2.3