summaryrefslogtreecommitdiffstats
path: root/src/host
diff options
context:
space:
mode:
authorAndreas.Eversberg <jolly@eversberg.eu>2010-10-13 18:33:16 +0000
committerAndreas.Eversberg <jolly@eversberg.eu>2010-10-13 18:33:16 +0000
commit513972c37df253187b49c9cbea2263a095d2383b (patch)
tree21f7ca569945f205c44f3ea61406e8d3e701f1f9 /src/host
parent3318b3f6227e1ce912ace5a3a4a3c269056177ae (diff)
[layer23] If SIM is invalid, display that on the VTY
Diffstat (limited to 'src/host')
-rw-r--r--src/host/layer23/src/mobile/gsm322.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/gsm322.c b/src/host/layer23/src/mobile/gsm322.c
index e3ddab0b..2abaa566 100644
--- 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)