"the big fix", of the E1 subchannel [de]multiplexer. I don't even remember how
many bugs I fixed during the last couple of hours. It was never working at
any time before.
diff --git a/include/openbsc/subchan_demux.h b/include/openbsc/subchan_demux.h
index 23c9032..a5c5d8e 100644
--- a/include/openbsc/subchan_demux.h
+++ b/include/openbsc/subchan_demux.h
@@ -34,7 +34,8 @@
struct demux_subch {
u_int8_t out_bitbuf[TRAU_FRAME_BITS];
- u_int8_t out_idx; /* next bit to be written in out_bitbuf */
+ u_int16_t out_idx; /* next bit to be written in out_bitbuf */
+ unsigned int consecutive_zeros;
};
struct subch_demux {