From 5e81ff03518122c3d343ca74b1570ff8ff59baae Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Wed, 28 Jul 2010 15:06:02 +0200 Subject: [layer23] request a layer1 reset on startup of layer2 applications This omits the need for starting layer23 applications before loading layer1 (which still works). Signed-off-by: Steve Markgraf --- src/host/layer23/src/misc/app_bcch_scan.c | 1 + src/host/layer23/src/misc/app_phone.c | 1 + src/host/layer23/src/mobile/app_mobile.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/host/layer23/src/misc/app_bcch_scan.c b/src/host/layer23/src/misc/app_bcch_scan.c index 35145535..326623f4 100644 --- a/src/host/layer23/src/misc/app_bcch_scan.c +++ b/src/host/layer23/src/misc/app_bcch_scan.c @@ -52,5 +52,6 @@ int l23_app_init(struct osmocom_ms *ms) { /* don't do layer3_init() as we don't want an actualy L3 */ fps_init(ms); + l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL); return register_signal_handler(SS_L1CTL, &signal_cb, NULL); } diff --git a/src/host/layer23/src/misc/app_phone.c b/src/host/layer23/src/misc/app_phone.c index ced0154b..bdb9b793 100644 --- a/src/host/layer23/src/misc/app_phone.c +++ b/src/host/layer23/src/misc/app_phone.c @@ -55,5 +55,6 @@ static int signal_cb(unsigned int subsys, unsigned int signal, int l23_app_init(struct osmocom_ms *ms) { register_signal_handler(SS_L1CTL, &signal_cb, NULL); + l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL); return layer3_init(ms); } diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c index aa62be19..4599f99c 100644 --- a/src/host/layer23/src/mobile/app_mobile.c +++ b/src/host/layer23/src/mobile/app_mobile.c @@ -186,6 +186,7 @@ int l23_app_init(struct osmocom_ms *ms) gsm_random_imei(&ms->settings); + l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL); printf("Mobile initialized, please start phone now!\n"); return 0; } -- cgit v1.2.3