projects
/
osmocom-bb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mobile] Adding security warning, if default IMEI is not changed
[osmocom-bb.git]
/
src
/
host
/
layer23
/
src
/
mobile
/
app_mobile.c
diff --git
a/src/host/layer23/src/mobile/app_mobile.c
b/src/host/layer23/src/mobile/app_mobile.c
index
d68b724
..
164f3ed
100644
(file)
--- a/
src/host/layer23/src/mobile/app_mobile.c
+++ b/
src/host/layer23/src/mobile/app_mobile.c
@@
-203,6
+203,13
@@
int mobile_init(struct osmocom_ms *ms)
ms->shutdown = 0;
ms->started = 0;
ms->shutdown = 0;
ms->started = 0;
+ if (!strcmp(ms->settings.imei, "000000000000000")) {
+ printf("***\nWarning: Mobile '%s' has default IMEI: %s\n",
+ ms->name, ms->settings.imei);
+ printf("This could relate your identitiy to other users with "
+ "default IMEI.\n***\n");
+ }
+
l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL);
printf("Mobile '%s' initialized, please start phone now!\n", ms->name);
return 0;
l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL);
printf("Mobile '%s' initialized, please start phone now!\n", ms->name);
return 0;