misc: Fix crash in cell_log due missing l1_prim_cb
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 16 Jul 2011 07:33:35 +0000 (09:33 +0200)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 16 Jul 2011 07:33:35 +0000 (09:33 +0200)
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

src/host/layer23/src/common/main.c

index 7b6c74f..666e94a 100644 (file)
@@ -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)