From 78a27efb55e1c509604fe9d96f8c421d6b1bda36 Mon Sep 17 00:00:00 2001 From: Serhii Kostiuk Date: Fri, 6 Jan 2023 18:48:25 +0200 Subject: [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. --- src/global.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/global.h') 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; -- cgit v1.2.3