diff ater/tx_func.c @ 47:13fffc41f989

ater: add support for HR-data-16k TRAU-UL frame output
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 12 Sep 2024 23:37:47 +0000
parents 16715bd149e0
children 40f781efdbe1
line wrap: on
line diff
--- a/ater/tx_func.c	Thu Sep 12 17:43:39 2024 +0000
+++ b/ater/tx_func.c	Thu Sep 12 23:37:47 2024 +0000
@@ -87,6 +87,13 @@
 		msgb_free(msg);
 		return;
 	}
+	/*
+	 * A very ugly/hacky way of setting C5 for HR data,
+	 * working around libosmotrau API that is not designed
+	 * for such hacking.
+	 */
+	if (at->is_data && at->is_hr_data)
+		msg->tail[21] = 1;
 	msgb_put(msg, len);
 	osmo_i460_mux_enqueue(at->schan, msg);
 }