Commit Graph

7 Commits

Author SHA1 Message Date
Harald Welte 9e7a21ae58 osmo_e1f: Allow to transmit AIS
AIS is an all-1 bit-pattern which is used by intermediate equipment
to indicate that the link somewhere upstream is lost.

Change-Id: Icc5a16ee44ecebe802c4cca0b6cc763a88b6cc05
2021-01-05 23:25:38 +01:00
Harald Welte 6360c07d91 osmo_e1f: Fix inverted logic of E bits
A value of '1' means _no_ CRC4 error observed. We got that right
in the receive side, but not in the transmit side so far

Change-Id: I5ef9ef3b9781da2f53f54253d31cdbf81957ea67
2020-12-19 12:34:40 +01:00
Harald Welte d9a8f9a07c osmo_e1f.c: Fix CRC4 insertion
When encoding the CRC bit for Frame number 0 and 8 in the multiframe,
we must first move the CRC4 into those of the last SMF.

Change-Id: I088741fc4528f33b3b989ada0e21957456deedb6
2020-12-19 12:08:17 +01:00
Harald Welte 2e7284b5be osmo_e1f: Fix use of uninitized variable
Change-Id: I42024856a58f0bd4fcc1c767688de5334994a8a8
2020-12-19 12:08:17 +01:00
Harald Welte 61a23eaf5d osmo_e1f.c: sa4..sa8 bits should be all-1 by default
From ITU-T G.704 Table 5A Note 4:

> Bits S a4 to S a8 (where these are not used) should be set to 1 on
> links crossing an international border.

Change-Id: Id55599a7152a90f85076de810db2a03ac6f3aac1
2020-12-19 12:08:17 +01:00
Harald Welte 2aa6d028a8 software/obsloete: Add sockbuf_test.c from my local tree 2020-09-04 14:57:52 +02:00
Harald Welte 6719ac2019 move old software snippets and hacks to software/obsolete 2020-09-04 14:56:45 +02:00