universal7580: Add reversed RIL_InitialAttachApn fields
authorChristopher N. Hesse <raymanfx@gmail.com>
Tue, 13 Feb 2018 23:14:52 +0000 (00:14 +0100)
committerJan Altensen <info@stricted.net>
Thu, 15 Aug 2019 09:11:39 +0000 (11:11 +0200)
These are needed to fix RIL crashing when trying to attach the initial
APN.

For LTE to work, these fields must be initialized to sane values.
Defaults that I found are "IP" for roamingProtocol and 0 for imsType.

Our custom libril in hardware/samsung will be updated to account for these
requirements.

Change-Id: Iad3c078bf6205d0d45ea5006070f2e1de5a972ea

ril/include/telephony/ril.h

index 92aa30105423f0efafb67efd0a50f83dcc405ca4..8aae1ab67eb3549a924a8bb0386ac7da2c4203f9 100644 (file)
@@ -6416,6 +6416,12 @@ typedef struct {
                                    (None: 0, PAP: 1, CHAP: 2, PAP&CHAP: 3) */
     char *username;             /* the username for APN, or NULL */
     char *password;             /* the password for APN, or NULL */
+#ifdef NEEDS_ROAMING_PROTOCOL_FIELD
+    char *roamingProtocol;
+#endif
+#ifdef NEEDS_IMS_TYPE_FIELD
+    int imsType;
+#endif
 } RIL_InitialAttachApn;
 
 typedef struct {