Fix RIL_UNSOL_RIL_CONNECTED to return the vendor RIL version. DO NOT MERGE.
The new RIL_UNSOL_RIL_CONNECTED call should return the version of
the vendor RIL library and not the version of rild. Fixes data
connectivity on Crespo.
Change-Id: Ib644216677e79b135214a546400372dd61c8d96d
diff --git a/libril/ril.cpp b/libril/ril.cpp
index 6497643..bb53926 100644
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -2307,7 +2307,7 @@
static void onNewCommandConnect() {
// Inform we are connected and the ril version
- int rilVer = RIL_VERSION;
+ int rilVer = s_callbacks.version;
RIL_onUnsolicitedResponse(RIL_UNSOL_RIL_CONNECTED,
&rilVer, sizeof(rilVer));