summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2010-07-28 15:06:02 +0200
committerHarald Welte <laforge@gnumonks.org>2010-07-29 11:12:31 +0200
commit5e81ff03518122c3d343ca74b1570ff8ff59baae (patch)
tree638fc35f645ec17a3ce1065ddffdd19cfe71b1c7
parentdf3c7a9c99ff4f965f7a830febc0c43d95e66289 (diff)
[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 <steve@steve-m.de>
-rw-r--r--src/host/layer23/src/misc/app_bcch_scan.c1
-rw-r--r--src/host/layer23/src/misc/app_phone.c1
-rw-r--r--src/host/layer23/src/mobile/app_mobile.c1
3 files changed, 3 insertions, 0 deletions
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;
}