comparison 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
comparison
equal deleted inserted replaced
46:12415d7ce262 47:13fffc41f989
85 len = osmo_trau_frame_encode(msg->tail, msgb_tailroom(msg), fr); 85 len = osmo_trau_frame_encode(msg->tail, msgb_tailroom(msg), fr);
86 if (len <= 0) { 86 if (len <= 0) {
87 msgb_free(msg); 87 msgb_free(msg);
88 return; 88 return;
89 } 89 }
90 /*
91 * A very ugly/hacky way of setting C5 for HR data,
92 * working around libosmotrau API that is not designed
93 * for such hacking.
94 */
95 if (at->is_data && at->is_hr_data)
96 msg->tail[21] = 1;
90 msgb_put(msg, len); 97 msgb_put(msg, len);
91 osmo_i460_mux_enqueue(at->schan, msg); 98 osmo_i460_mux_enqueue(at->schan, msg);
92 } 99 }
93 100
94 void transmit_e1_ts(void) 101 void transmit_e1_ts(void)