[lapdm] Added flow control between L1 and L2, so DM mode does not crash.
authorAndreas.Eversberg <jolly@eversberg.eu>
Sat, 26 Jun 2010 11:12:25 +0000 (11:12 +0000)
committerAndreas.Eversberg <jolly@eversberg.eu>
Sat, 26 Jun 2010 11:12:25 +0000 (11:12 +0000)
commit7b84cf805b83fee946f1319225c8dff1c25c0f73
tree31db82a47a81ce2f088ae7243484624d6062cbc6
parent4e03d6f82210535d8d1d93aa7be0af5c8372485b
[lapdm] Added flow control between L1 and L2, so DM mode does not crash.

In dedicated mode a frame is sent to layer 1. Subsequent frames are queued
inside lapdm.c until a confirm from layer 1 is received. Since not all
pending frames are sent rapidly at once, the layer 1 does not crash anymore.

Also included in this commit: handling of reset confirm (maybe required
in the future after dedicated mode)
src/host/layer23/include/osmocom/l1ctl.h
src/host/layer23/include/osmocom/lapdm.h
src/host/layer23/src/app_mobile.c
src/host/layer23/src/gsm322.c
src/host/layer23/src/gsm48_rr.c
src/host/layer23/src/l1ctl.c
src/host/layer23/src/lapdm.c