diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-23 23:55:20 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-23 23:55:20 +0200 |
commit | 3538c38835b9120d7cf062fa533f7657768bf0d3 (patch) | |
tree | 5d1193b58c7c086fcda1a6c5127291439a70a11b /src/host/layer23/src/mobile/app_mobile.c | |
parent | 5d65fcba6caf949c910dd86e43e7d1bef3b219d2 (diff) |
further decouple lapdm code from osmocom_ms and l1ctl
we introduce a new primitive layer betwen PH and DL, enabling the
use of the LAPDm code in applications that are not based on L1CTL
Diffstat (limited to 'src/host/layer23/src/mobile/app_mobile.c')
-rw-r--r-- | src/host/layer23/src/mobile/app_mobile.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c index 1766d7e5..d9c07e10 100644 --- a/src/host/layer23/src/mobile/app_mobile.c +++ b/src/host/layer23/src/mobile/app_mobile.c @@ -161,11 +161,10 @@ int mobile_init(struct osmocom_ms *ms) int rc; gsm_settings_arfcn(ms); - ms->lapdm_channel.lapdm_dcch.l1_ctx = ms; - ms->lapdm_channel.lapdm_dcch.l3_ctx = ms; - ms->lapdm_channel.lapdm_acch.l1_ctx = ms; - ms->lapdm_channel.lapdm_acch.l3_ctx = ms; + lapdm_channel_init(&ms->lapdm_channel); + lapdm_channel_set_l1(&ms->lapdm_channel, l1ctl_ph_prim_cb, ms); + gsm_sim_init(ms); gsm48_cc_init(ms); gsm_subscr_init(ms); |