summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/app_mobile.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2015-04-28 15:57:54 +0200
committerSylvain Munaut <tnt@246tNt.com>2015-04-28 15:57:54 +0200
commitfc20a37cb375dac11f45b78a446237c70f00841c (patch)
tree2d9191eb7548f7dd9084f5ced3b21a87f8a82c04 /src/host/layer23/src/mobile/app_mobile.c
parente6372a2c247d9882fe915fd34252d9fbd5b78adf (diff)
host/mobile: Finish working support for the SAP interface
Patch mostly written by Nico Golde and some cleanup/testing by Domonkos Tomcsanyi Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host/layer23/src/mobile/app_mobile.c')
-rw-r--r--src/host/layer23/src/mobile/app_mobile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index 9f28b0ac..3895ad67 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -37,6 +37,7 @@
#include <osmocom/bb/mobile/app_mobile.h>
#include <osmocom/bb/mobile/mncc.h>
#include <osmocom/bb/mobile/voice.h>
+#include <osmocom/bb/common/sap_interface.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/core/msgb.h>
@@ -191,6 +192,9 @@ int mobile_init(struct osmocom_ms *ms)
ms->lapdm_channel.lapdm_acch.datalink[DL_SAPI3].dl.t200_usec = 0;
lapdm_channel_set_l1(&ms->lapdm_channel, l1ctl_ph_prim_cb, ms);
+ /* init SAP client before SIM card starts up */
+ osmosap_init(ms);
+
gsm_sim_init(ms);
gsm48_cc_init(ms);
gsm480_ss_init(ms);