summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther2011-07-16 09:33:35 +0200
committerHolger Hans Peter Freyther2011-07-16 09:33:35 +0200
commit58a1b814258886b5be19977c290fb8f6e0078e34 (patch)
tree842027a8948fdc563b482a7a8f87786ff6174e9a /src
parentlapdm: fix use-after-free (diff)
downloadosmocom-58a1b814258886b5be19977c290fb8f6e0078e34.tar.gz
osmocom-58a1b814258886b5be19977c290fb8f6e0078e34.tar.xz
osmocom-58a1b814258886b5be19977c290fb8f6e0078e34.zip
misc: Fix crash in cell_log due missing l1_prim_cb
Commit 3538c38835b9120d7cf062fa533f7657768bf0d3 introduced the l1_prim_cb but the init of the misc apps were not updated, make it us the generic callback that should restore the previous behavior
Diffstat (limited to 'src')
-rw-r--r--src/host/layer23/src/common/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/layer23/src/common/main.c b/src/host/layer23/src/common/main.c
index 7b6c74f..666e94a 100644
--- a/src/host/layer23/src/common/main.c
+++ b/src/host/layer23/src/common/main.c
@@ -259,6 +259,7 @@ int main(int argc, char **argv)
ms->lapdm_channel.lapdm_acch.l1_ctx = ms;
ms->lapdm_channel.lapdm_acch.l3_ctx = ms;
lapdm_channel_init(&ms->lapdm_channel, LAPDM_MODE_MS);
+ lapdm_channel_set_l1(&ms->lapdm_channel, l1ctl_ph_prim_cb, ms);
rc = l23_app_init(ms);
if (rc < 0)