AW: [PATCH] [layer23] fix sim path handling and msisdn path location

Andreas.Eversberg Andreas.Eversberg at versatel.de
Thu Apr 28 07:13:42 UTC 2011


hi nico,

thanx for this patch. i would like to review it this weekend before i commit it. 

best regards,

andreas


-----Ursprüngliche Nachricht-----
Von: baseband-devel-bounces at lists.osmocom.org [mailto:baseband-devel-bounces at lists.osmocom.org] Im Auftrag von Nico Golde
Gesendet: Dienstag, 26. April 2011 16:54
An: baseband-devel at lists.osmocom.org
Cc: nico at ngolde.de
Betreff: [PATCH] [layer23] fix sim path handling and msisdn path location

From: Nico Golde <nico at ngolde.de>

---
 src/host/layer23/src/common/sim.c        |    2 +-
 src/host/layer23/src/mobile/subscriber.c |    2 +-
 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 3ef3cf8..5e94c3e 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 3ba78f3..a16539a 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 },
-- 
1.7.4.4








More information about the baseband-devel mailing list