summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2023-01-06 18:48:25 +0200
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2023-01-06 19:20:27 +0200
commit78a27efb55e1c509604fe9d96f8c421d6b1bda36 (patch)
tree00031ede7deeb96674eb000a336179f22ad32710 /src/global.h
parente8b95d56ac9e06c3dc55f2c6fc3b2e177f9b10b0 (diff)
downloadsms-utils-78a27efb55e1c509604fe9d96f8c421d6b1bda36.tar.gz
sms-utils-78a27efb55e1c509604fe9d96f8c421d6b1bda36.tar.bz2
sms-utils-78a27efb55e1c509604fe9d96f8c421d6b1bda36.zip
[GP-1842] Update the Cellular code to use SIM IMSI for Verizon detection
The certifications lab uses special SIM cards with non-Verizon ICCID numbers and Verizon IMSI numbers (MCC/MNC prefixes or PLMN IDs). Update the code to detect Verizon properly for such "special" SIM cards.
Diffstat (limited to 'src/global.h')
-rw-r--r--src/global.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/global.h b/src/global.h
index a6073dd..4b83cb5 100644
--- a/src/global.h
+++ b/src/global.h
@@ -14,6 +14,10 @@
#define ICCID_LEN 23
#define ICCID_SIZE (ICCID_LEN + 1)
+#define IMSI_LEN 15
+#define IMSI_SIZE (IMSI_LEN + 1)
+#define PLMN_ID_LEN_VZW 6
+#define PLMN_ID_SIZE_VZW (PLMN_ID_LEN_VZW + 1)
#define MODEL_LEN 1023
#define MODEL_SIZE (MODEL_LEN + 1)
#define MANUFACTURER_LEN 1023
@@ -37,7 +41,8 @@ struct global_core {
char *msg_store_new;
char *pb_store;
char model[MODEL_SIZE];
- char iccid[ICCID_SIZE]; /* Needed for LNA3/Verizon */
+ char iccid[ICCID_SIZE]; /* Needed for Verizon 3GPP2 SMS format detection */
+ char imsi[IMSI_SIZE]; /* Needed for Verizon 3GPP2 SMS format detection */
char manufacturer[MANUFACTURER_SIZE]; /* Needed to pick proper manufacturer-specific commands */
char *editor;