libril: fix parceling of DataCallListV6 on xmm626x
authorSimon Shields <simon@lineageos.org>
Sun, 12 Feb 2017 23:26:17 +0000 (10:26 +1100)
committerSimon Shields <simon@lineageos.org>
Sun, 12 Feb 2017 23:26:17 +0000 (10:26 +1100)
Change-Id: I32fee851e65f8f5af3d57fc4fc588139ff6ded35

ril/libril/ril.cpp

index c449026014729a1b46276cb723ff802281916b2e..4478ea22d683c8a40b242df1d57c3412b6d8334d 100755 (executable)
@@ -2710,7 +2710,11 @@ static int responseDataCallListV6(Parcel &p, void *response, size_t responselen)
         writeStringToParcel(p, p_cur[i].ifname);
         writeStringToParcel(p, p_cur[i].addresses);
         writeStringToParcel(p, p_cur[i].dnses);
+#if defined(MODEM_TYPE_XMM6262) || defined(MODEM_TYPE_XMM6260)
+        writeStringToParcel(p, p_cur[i].addresses);
+#else
         writeStringToParcel(p, p_cur[i].gateways);
+#endif
         appendPrintBuf("%s[status=%d,retry=%d,cid=%d,%s,%s,%s,%s,%s,%s],", printBuf,
             p_cur[i].status,
             p_cur[i].suggestedRetryTime,
@@ -2720,7 +2724,12 @@ static int responseDataCallListV6(Parcel &p, void *response, size_t responselen)
             (char*)p_cur[i].ifname,
             (char*)p_cur[i].addresses,
             (char*)p_cur[i].dnses,
-            (char*)p_cur[i].gateways);
+#if defined(MODEM_TYPE_XMM6262) || defined(MODEM_TYPE_XMM6260)
+            (char*)p_cur[i].addresses
+#else
+            (char*)p_cur[i].gateways
+#endif
+            );
     }
     removeLastChar;
     closeResponse;