From 513972c37df253187b49c9cbea2263a095d2383b Mon Sep 17 00:00:00 2001 From: "Andreas.Eversberg" Date: Wed, 13 Oct 2010 18:33:16 +0000 Subject: [PATCH] [layer23] If SIM is invalid, display that on the VTY --- src/host/layer23/src/mobile/gsm322.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/host/layer23/src/mobile/gsm322.c b/src/host/layer23/src/mobile/gsm322.c index e3ddab0..2abaa56 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) -- 2.20.1