From: Steve Markgraf Date: Wed, 28 Jul 2010 13:06:02 +0000 (+0200) Subject: [layer23] request a layer1 reset on startup of layer2 applications X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=5e81ff03518122c3d343ca74b1570ff8ff59baae;p=osmocom-bb.git [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 --- diff --git a/src/host/layer23/src/misc/app_bcch_scan.c b/src/host/layer23/src/misc/app_bcch_scan.c index 3514553..326623f 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 ced0154..bdb9b79 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 aa62be1..4599f99 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; }