From f1e6f966542b4954308d3a5986d3d8c50ac6a90c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 19 Feb 2009 17:05:13 +0000 Subject: don't pass subchannel data to the TRAU decoder if we're not synchronized yet --- include/openbsc/subchan_demux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/openbsc/subchan_demux.h') diff --git a/include/openbsc/subchan_demux.h b/include/openbsc/subchan_demux.h index a5c5d8ea4..9661b0481 100644 --- a/include/openbsc/subchan_demux.h +++ b/include/openbsc/subchan_demux.h @@ -35,7 +35,10 @@ struct demux_subch { u_int8_t out_bitbuf[TRAU_FRAME_BITS]; u_int16_t out_idx; /* next bit to be written in out_bitbuf */ + /* number of consecutive zeros that we have received (for sync) */ unsigned int consecutive_zeros; + /* are we in TRAU frame sync or not? */ + unsigned int in_sync; }; struct subch_demux { -- cgit v1.2.3