summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/misc/app_cbch_sniff.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-23 23:55:20 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-23 23:55:20 +0200
commit3538c38835b9120d7cf062fa533f7657768bf0d3 (patch)
tree5d1193b58c7c086fcda1a6c5127291439a70a11b /src/host/layer23/src/misc/app_cbch_sniff.c
parent5d65fcba6caf949c910dd86e43e7d1bef3b219d2 (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/misc/app_cbch_sniff.c')
-rw-r--r--src/host/layer23/src/misc/app_cbch_sniff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/misc/app_cbch_sniff.c b/src/host/layer23/src/misc/app_cbch_sniff.c
index 83c54686..f10b30fa 100644
--- a/src/host/layer23/src/misc/app_cbch_sniff.c
+++ b/src/host/layer23/src/misc/app_cbch_sniff.c
@@ -182,7 +182,7 @@ int l23_app_init(struct osmocom_ms *ms)
/* don't do layer3_init() as we don't want an actualy L3 */
g_ms = ms;
- osmol2_register_handler(ms, &rcv_rsl);
+ lapdm_channel_set_l1(&ms->lapdm_channel, &rcv_rsl, ms);
l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL);
/* FIXME: L1CTL_RES_T_FULL doesn't reset dedicated mode