projects
/
osmocom-bb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed descriptions of VTY interface commands.
[osmocom-bb.git]
/
src
/
host
/
layer23
/
src
/
app_mobile.c
diff --git
a/src/host/layer23/src/app_mobile.c
b/src/host/layer23/src/app_mobile.c
index
1d51755
..
46e0e06
100644
(file)
--- a/
src/host/layer23/src/app_mobile.c
+++ b/
src/host/layer23/src/app_mobile.c
@@
-87,10
+87,9
@@
static int signal_cb(unsigned int subsys, unsigned int signal,
}
started = 1;
ms = signal_data;
}
started = 1;
ms = signal_data;
- gsm_subscr_testcard(ms, 1, 1, "0000000000");
-// ms->subscr.plmn_valid = 1;
- ms->subscr.plmn_mcc = 262;
- ms->subscr.plmn_mnc = 2;
+ /* insert test card, if enabled */
+ if (ms->settings.simtype == GSM_SIM_TYPE_TEST)
+ gsm_subscr_testcard(ms);
/* start PLMN + cell selection process */
nmsg = gsm322_msgb_alloc(GSM322_EVENT_SWITCH_ON);
if (!nmsg)
/* start PLMN + cell selection process */
nmsg = gsm322_msgb_alloc(GSM322_EVENT_SWITCH_ON);
if (!nmsg)
@@
-140,9
+139,11
@@
int l23_app_init(struct osmocom_ms *ms)
{
int rc;
{
int rc;
- log_parse_category_mask(stderr_target, "DCS:DPLMN:DRR:DMM:DCC:DMNCC:DPAG");
+ log_parse_category_mask(stderr_target, "D
RSL:DLAPDM:D
CS:DPLMN:DRR:DMM:DCC:DMNCC:DPAG");
srand(time(NULL));
srand(time(NULL));
+
+ gsm_settings_init(ms);
gsm48_cc_init(ms);
gsm_support_init(ms);
gsm_subscr_init(ms);
gsm48_cc_init(ms);
gsm_support_init(ms);
gsm_subscr_init(ms);
@@
-151,6
+152,7
@@
int l23_app_init(struct osmocom_ms *ms)
INIT_LLIST_HEAD(&ms->trans_list);
ms->cclayer.mncc_recv = mncc_recv_dummy;
gsm322_init(ms);
INIT_LLIST_HEAD(&ms->trans_list);
ms->cclayer.mncc_recv = mncc_recv_dummy;
gsm322_init(ms);
+
l23_app_work = mobile_work;
register_signal_handler(SS_L1CTL, &signal_cb, NULL);
l23_app_exit = mobile_exit;
l23_app_work = mobile_work;
register_signal_handler(SS_L1CTL, &signal_cb, NULL);
l23_app_exit = mobile_exit;
@@
-160,11
+162,13
@@
int l23_app_init(struct osmocom_ms *ms)
if (rc < 0) {
fprintf(stderr, "Failed to parse the config file: '%s'\n",
config_file);
if (rc < 0) {
fprintf(stderr, "Failed to parse the config file: '%s'\n",
config_file);
- fprintf(stderr, "Please create config file using: "
+ fprintf(stderr, "Please c
heck or c
reate config file using: "
"'touch %s%s'\n", OSMOCOM_CONFDIR, config_file);
return rc;
}
"'touch %s%s'\n", OSMOCOM_CONFDIR, config_file);
return rc;
}
+ gsm_random_imei(&ms->settings);
+
return 0;
}
return 0;
}