SIM: Display SIM version in programming mode on memory location 06

Untested!
This commit is contained in:
Andreas Eversberg
2024-04-13 22:53:29 +02:00
parent 9b4095d894
commit f96994e0e7
2 changed files with 11 additions and 3 deletions

View File

@@ -609,8 +609,8 @@ static void rd_rufn(sim_sim_t *sim, uint8_t *data, int length)
switch (rufn) {
case 0: /* send bitmap for service mode */
memset(data, 0xff, 24);
data[0] = 5; /* 5 entries */
data[1] = 0x07; /* upper 5 bits = 0 */
data[0] = 6; /* 6 entries */
data[1] = 0x03; /* upper 6 bits = 0 */
break;
case 1: /* FUTLN */
data[0] = eeprom_read(EEPROM_FUTLN_H + sim->card);
@@ -647,6 +647,10 @@ static void rd_rufn(sim_sim_t *sim, uint8_t *data, int length)
encode_directory(data, number, "Wartungsschl.");
LOGP(DSIM7, LOGL_INFO, "service mode: maintenance = %s\n", number);
break;
case 6: /* sim version */
encode_directory(data, SIM_VERSION, SIM_VERSION_NAME);
LOGP(DSIM7, LOGL_INFO, "service mode: display SIM version = %s\n", SIM_VERSION);
break;
}
tx_sdu(sim, 0, data, 24);
return;