diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-02-19 17:05:13 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-02-19 17:05:13 +0000 |
commit | f1e6f966542b4954308d3a5986d3d8c50ac6a90c (patch) | |
tree | a1420dd4ca6d6bbb644d96290d5b023788c18bc9 /include/openbsc/subchan_demux.h | |
parent | 26aa6a1166f2593e93f926285a5a5476a9724195 (diff) |
don't pass subchannel data to the TRAU decoder if we're not synchronized yet
Diffstat (limited to 'include/openbsc/subchan_demux.h')
-rw-r--r-- | include/openbsc/subchan_demux.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |