summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-12-25 01:26:29 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-12-26 20:52:18 +0000
commit39dc9c463c26490d9a2bbb7d9fe0bfb6e0a1bca2 (patch)
tree01c6f3d8baf2f7fdc6c99095466c0c0fb4dd75b9 /src/host/layer23/include/osmocom/bb
parente11725aa868c8093288d0e1985854e15c7cb46e9 (diff)
mobile/subscriber.c: consider GSM_SIM_TYPE_SAP too
There are several SIM card interfaces, two of which: - GSM_SIM_TYPE_L1PHY (using built-in SIM reader of the L1 PHY), - GSM_SIM_TYPE_SAP (using remote reader via (BT)SAP protocol), can actually deal with a physical SIM card. But, for some reason, only GSM_SIM_TYPE_L1PHY was considered as such. Let's also get along with GSM_SIM_TYPE_SAP for the following procedures: - PIN management and verification, - FPLMN / LOCI updating, - A3 authentication. Change-Id: I4b3080fa7a5332467a449a314ba3cc3a07a9b7df
Diffstat (limited to 'src/host/layer23/include/osmocom/bb')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/subscriber.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/subscriber.h b/src/host/layer23/include/osmocom/bb/mobile/subscriber.h
index 958700ae..c747af93 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/subscriber.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/subscriber.h
@@ -20,6 +20,9 @@ struct gsm_sub_plmn_na {
#define GSM_IMSI_LENGTH 16
+#define GSM_SIM_IS_READER(type) \
+ (type == GSM_SIM_TYPE_L1PHY || type == GSM_SIM_TYPE_SAP)
+
enum {
GSM_SIM_TYPE_NONE = 0,
GSM_SIM_TYPE_L1PHY,