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
This commit is contained in:
parent
e6b0fe8377
commit
9e7a21ae58
|
@ -292,6 +292,11 @@ int osmo_e1f_pull_tx_frame(struct osmo_e1f_instance *e1i, uint8_t *out_frame)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (e1i->tx.ais) {
|
||||||
|
memset(out_frame, 0xff, 32);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* generate TS0 */
|
/* generate TS0 */
|
||||||
out_frame[0] = e1_pull_ts0(e1i);
|
out_frame[0] = e1_pull_ts0(e1i);
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
struct osmo_e1f_tx_state {
|
struct osmo_e1f_tx_state {
|
||||||
bool remote_alarm;
|
bool remote_alarm;
|
||||||
bool crc4_error;
|
bool crc4_error;
|
||||||
|
bool ais;
|
||||||
/* lower 5 bits: Sa4..Sa8 */
|
/* lower 5 bits: Sa4..Sa8 */
|
||||||
uint8_t sa4_sa8;
|
uint8_t sa4_sa8;
|
||||||
/* frame number 0..15 */
|
/* frame number 0..15 */
|
||||||
|
|
Loading…
Reference in New Issue