projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3318b3f
)
[layer23] If SIM is invalid, display that on the VTY
author
Andreas.Eversberg
<jolly@eversberg.eu>
Wed, 13 Oct 2010 18:33:16 +0000
(18:33 +0000)
committer
Andreas.Eversberg
<jolly@eversberg.eu>
Wed, 13 Oct 2010 18:33:16 +0000
(18:33 +0000)
src/host/layer23/src/mobile/gsm322.c
patch
|
blob
|
history
diff --git
a/src/host/layer23/src/mobile/gsm322.c
b/src/host/layer23/src/mobile/gsm322.c
index
e3ddab0
..
2abaa56
100644
(file)
--- a/
src/host/layer23/src/mobile/gsm322.c
+++ b/
src/host/layer23/src/mobile/gsm322.c
@@
-1116,8
+1116,14
@@
static int gsm322_a_sim_insert(struct osmocom_ms *ms, struct msgb *msg)
/* SIM is removed */
static int gsm322_a_sim_removed(struct osmocom_ms *ms, struct msgb *msg)
{
+ struct gsm322_msg *gm = (struct gsm322_msg *) msg->data;
+ int msg_type = gm->msg_type;
struct msgb *nmsg;
+ if (msg_type == GSM322_EVENT_INVALID_SIM) {
+ vty_notify(ms, NULL);
+ vty_notify(ms, "SIM not valid\n");
+ }
/* indicate SIM remove to cell selection process */
nmsg = gsm322_msgb_alloc(GSM322_EVENT_SIM_REMOVE);
if (!nmsg)