From: Simon Shields Date: Sun, 12 Feb 2017 23:26:17 +0000 (+1100) Subject: libril: fix parceling of DataCallListV6 on xmm626x X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b75c5763c96714af841f9ae4d0606228fb1615a;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git libril: fix parceling of DataCallListV6 on xmm626x Change-Id: I32fee851e65f8f5af3d57fc4fc588139ff6ded35 --- diff --git a/ril/libril/ril.cpp b/ril/libril/ril.cpp index c449026..4478ea2 100755 --- a/ril/libril/ril.cpp +++ b/ril/libril/ril.cpp @@ -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;