summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Golde <nico@ngolde.de>2011-05-02 15:42:42 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-05-02 15:55:36 +0200
commit9ddeae9d42a23e0ffa142e43799b37803bad5168 (patch)
tree4af055902422b4301b6e661f9aded7ddb3dca36c
parent85a89208ca0fc5b056b98bf79882929fb69d3913 (diff)
[sim] Fixed path handling in sim client and mobile app.
-rw-r--r--src/host/layer23/src/common/sim.c2
-rw-r--r--src/host/layer23/src/mobile/subscriber.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/host/layer23/src/common/sim.c b/src/host/layer23/src/common/sim.c
index b76de5c..3aca693 100644
--- a/src/host/layer23/src/common/sim.c
+++ b/src/host/layer23/src/common/sim.c
@@ -688,7 +688,7 @@ static int sim_process_job(struct osmocom_ms *ms)
/* check MF / DF */
i = 0;
while (sh->path[i] && sim->path[i]) {
- if (sh->path[i] != sh->path[i])
+ if (sh->path[i] != sim->path[i])
break;
i++;
}
diff --git a/src/host/layer23/src/mobile/subscriber.c b/src/host/layer23/src/mobile/subscriber.c
index 549345c..9a2085a 100644
--- a/src/host/layer23/src/mobile/subscriber.c
+++ b/src/host/layer23/src/mobile/subscriber.c
@@ -492,7 +492,7 @@ static struct subscr_sim_file {
{ 1, { 0 }, 0x2fe2, subscr_sim_iccid },
{ 1, { 0x7f20, 0 }, 0x6f07, subscr_sim_imsi },
{ 1, { 0x7f20, 0 }, 0x6f7e, subscr_sim_loci },
- { 0, { 0x7f20, 0 }, 0x6f40, subscr_sim_msisdn },
+ { 0, { 0x7f10, 0 }, 0x6f40, subscr_sim_msisdn },
{ 0, { 0x7f20, 0 }, 0x6f20, subscr_sim_kc },
{ 0, { 0x7f20, 0 }, 0x6f30, subscr_sim_plmnsel },
{ 0, { 0x7f20, 0 }, 0x6f31, subscr_sim_hpplmn },