[layer23] SIM client accepts status code 61xx as a positive result
authorAndreas.Eversberg <jolly@eversberg.eu>
Mon, 30 Aug 2010 11:43:16 +0000 (11:43 +0000)
committerAndreas.Eversberg <jolly@eversberg.eu>
Mon, 30 Aug 2010 11:43:16 +0000 (11:43 +0000)
src/host/layer23/include/osmocom/bb/mobile/sim.h
src/host/layer23/src/mobile/sim.c

index 938c9ac..be8b8b5 100644 (file)
@@ -69,6 +69,7 @@
 #define GSM1111_STAT_PROACTIVE         0x91
 #define GSM1111_STAT_DL_ERROR          0x9e
 #define GSM1111_STAT_RESPONSE          0x9f
+#define GSM1111_STAT_RESPONSE_TOO      0x61
 #define GSM1111_STAT_APP_TK_BUSY       0x93
 #define GSM1111_STAT_MEM_PROBLEM       0x92
 #define GSM1111_STAT_REFERENCING       0x94
index f10e65e..d4d1821 100644 (file)
@@ -861,6 +861,7 @@ static int sim_apdu_receive(struct osmocom_ms *ms, struct msgb *msg)
        case GSM1111_STAT_PROACTIVE:
        case GSM1111_STAT_DL_ERROR:
        case GSM1111_STAT_RESPONSE:
+       case GSM1111_STAT_RESPONSE_TOO:
                LOGP(DSIM, LOGL_INFO, "command successfull\n");
                switch (sh->job_type) {
                case SIM_JOB_PIN1_CHANGE: