OSDN Git Service

Fix RIL_UNSOL_RIL_CONNECTED to return the vendor RIL version. DO NOT MERGE.
authorJake Hamby <jhamby@google.com>
Wed, 13 Apr 2011 06:32:08 +0000 (23:32 -0700)
committerWink Saville <wink@google.com>
Wed, 13 Apr 2011 06:32:44 +0000 (23:32 -0700)
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

libril/ril.cpp

index 6497643..bb53926 100644 (file)
@@ -2307,7 +2307,7 @@ static void processCommandsCallback(int fd, short flags, void *param) {
 
 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));