summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/common
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-09-19 12:52:42 +0200
committerAndreas.Eversberg2010-09-19 12:52:42 +0200
commit5e1cf12d67be5f45d811fc5f2529ba6593981b92 (patch)
tree8712b3bc5a9c2a67c2e8788e1517cfe6a4bccef5 /src/host/layer23/include/osmocom/bb/common
parent[layer23] SIM client completion (diff)
downloadosmocom-5e1cf12d67be5f45d811fc5f2529ba6593981b92.tar.gz
osmocom-5e1cf12d67be5f45d811fc5f2529ba6593981b92.tar.xz
osmocom-5e1cf12d67be5f45d811fc5f2529ba6593981b92.zip
[layer23] Fixed and completed SIM's PIN handling
Use VTY to handle PIN: enable sim pin 1 xxxx sim change-pin 1 xxxx yyyy sim disable-pin 1 xxxx sim enable-pin 1 xxxx sim unlock-pin 1 uuuuuuuu yyyy 1 = mobile station "1" xxxx = current PIN yyyy = new PIN uuuuuuuu = unlock key (PuK)
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/common')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/sim.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/sim.h b/src/host/layer23/include/osmocom/bb/common/sim.h
index c1e6087..a676b92 100644
--- a/src/host/layer23/include/osmocom/bb/common/sim.h
+++ b/src/host/layer23/include/osmocom/bb/common/sim.h
@@ -174,8 +174,8 @@ struct gsm_sim {
int job_state;
uint8_t reset;
- uint8_t pin1[8], pin2[8];
- uint8_t pin1_len, pin2_len;
+ uint8_t chv1_remain, chv2_remain;
+ uint8_t unblk1_remain, unblk2_remain;
};
struct sim_hdr {
@@ -215,16 +215,16 @@ struct gsm1111_response_mfdf_gsm {
uint8_t rfu1;
uint8_t chv1_remain:4,
rfu2:3,
- chv1_init;
+ chv1_init:1;
uint8_t unblk1_remain:4,
rfu3:3,
- unblk1_init;
+ unblk1_init:1;
uint8_t chv2_remain:4,
rfu4:3,
- chv2_init;
+ chv2_init:1;
uint8_t unblk2_remain:4,
rfu5:3,
- unblk2_init;
+ unblk2_init:1;
uint8_t more_data[0];
} __attribute__ ((packed));