From cbf8e0a2ed2f7d1894aede1873a0f360f0219a17 Mon Sep 17 00:00:00 2001 From: Howard Su Date: Sun, 4 Jan 2015 10:33:32 +0100 Subject: [PATCH] libril: use ip address as gateway in ppp network. Fix data until these commits are completed: http://review.cyanogenmod.org/82277 http://review.cyanogenmod.org/82329 Credits to Howard Su http://review.cyanogenmod.org/80947 Change-Id: Iab88fd8d4ed1089cfdb724aa460597f6e39003bc --- ril/xmm6260/libril/ril.cpp | 4 ++-- ril/xmm6262/libril/ril.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ril/xmm6260/libril/ril.cpp b/ril/xmm6260/libril/ril.cpp index 42b19ffd..aacfb37e 100755 --- a/ril/xmm6260/libril/ril.cpp +++ b/ril/xmm6260/libril/ril.cpp @@ -1961,7 +1961,7 @@ static int responseDataCallList(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); - writeStringToParcel(p, p_cur[i].gateways); + writeStringToParcel(p, p_cur[i].addresses); appendPrintBuf("%s[status=%d,retry=%d,cid=%d,%s,%s,%s,%s,%s,%s],", printBuf, p_cur[i].status, p_cur[i].suggestedRetryTime, @@ -1971,7 +1971,7 @@ static int responseDataCallList(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); + (char*)p_cur[i].addresses); } removeLastChar; closeResponse; diff --git a/ril/xmm6262/libril/ril.cpp b/ril/xmm6262/libril/ril.cpp index 50e9f038..733c9c1c 100644 --- a/ril/xmm6262/libril/ril.cpp +++ b/ril/xmm6262/libril/ril.cpp @@ -1955,7 +1955,7 @@ static int responseDataCallList(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); - writeStringToParcel(p, p_cur[i].gateways); + writeStringToParcel(p, p_cur[i].addresses); appendPrintBuf("%s[status=%d,retry=%d,cid=%d,%s,%s,%s,%s,%s,%s],", printBuf, p_cur[i].status, p_cur[i].suggestedRetryTime, @@ -1965,7 +1965,7 @@ static int responseDataCallList(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); + (char*)p_cur[i].addresses); } removeLastChar; closeResponse;