summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/subscriber.c
diff options
context:
space:
mode:
authorAndreas.Eversberg <jolly@eversberg.eu>2010-09-26 21:08:53 +0000
committerAndreas.Eversberg <jolly@eversberg.eu>2010-09-26 21:08:53 +0000
commit7e4f54c4ee814a92f475ffbd2b6b55a12371dad6 (patch)
treebcf2edc360a39c48a0f4b2c427ad2e65712efb1f /src/host/layer23/src/mobile/subscriber.c
parented342e16731c69cd86ea17c9d066e153819a3093 (diff)
[layer23] VTY command for changing LAI on SIM card
This speed up network selection process, because no manual network search is required to change a network.
Diffstat (limited to 'src/host/layer23/src/mobile/subscriber.c')
-rw-r--r--src/host/layer23/src/mobile/subscriber.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/subscriber.c b/src/host/layer23/src/mobile/subscriber.c
index 782bece5..00d823cb 100644
--- a/src/host/layer23/src/mobile/subscriber.c
+++ b/src/host/layer23/src/mobile/subscriber.c
@@ -653,6 +653,10 @@ void gsm_subscr_sim_pin(struct osmocom_ms *ms, char *pin1, char *pin2,
struct msgb *nmsg;
uint8_t job;
+ /* skip, if no real valid SIM */
+ if (subscr->sim_type != GSM_SIM_TYPE_READER)
+ return;
+
switch (mode) {
case -1:
job = SIM_JOB_PIN1_DISABLE;