summaryrefslogtreecommitdiffstats
path: root/ril
diff options
context:
space:
mode:
authorSanket Padawe <sanketpadawe@google.com>2016-02-03 11:46:02 -0800
committerChristopher N. Hesse <raymanfx@gmail.com>2016-10-12 12:59:28 -0700
commit9f97208a88bfc3e2d5c38187bafc1c85e3e6df7e (patch)
tree5de14d0c2dd90e73e90dd99dea7b464b97451d38 /ril
parenta7c043d6f0810163e0f317ec7e726f32064fe89e (diff)
downloadandroid_hardware_samsung-9f97208a88bfc3e2d5c38187bafc1c85e3e6df7e.tar.gz
android_hardware_samsung-9f97208a88bfc3e2d5c38187bafc1c85e3e6df7e.tar.bz2
android_hardware_samsung-9f97208a88bfc3e2d5c38187bafc1c85e3e6df7e.zip
Use different response type for unsolicited mesg requiring
wakelock. + New type is added as ack from RIL java should be sent only for unsolicited mesgs which hold wakelock in ril.cpp. Bug: 22127517 Change-Id: Ib7e920d168ab92665283f80476bad3f5ede033e4
Diffstat (limited to 'ril')
-rwxr-xr-xril/libril/ril.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ril/libril/ril.cpp b/ril/libril/ril.cpp
index 5a28087..b2f952c 100755
--- a/ril/libril/ril.cpp
+++ b/ril/libril/ril.cpp
@@ -90,6 +90,7 @@ namespace android {
#define RESPONSE_UNSOLICITED 1
#define RESPONSE_SOLICITED_ACK 2
#define RESPONSE_SOLICITED_ACK_EXP 3
+#define RESPONSE_UNSOLICITED_ACK_EXP 4
/* Negative values for private RIL errno's */
#define RIL_ERRNO_INVALID_RESPONSE -1
@@ -5397,7 +5398,12 @@ void RIL_onUnsolicitedResponse(int unsolResponse, const void *data,
appendPrintBuf("[UNSL]< %s", requestToString(unsolResponse));
Parcel p;
- p.writeInt32 (RESPONSE_UNSOLICITED);
+ if (s_callbacks.version >= 13
+ && pRI->wakeType == WAKE_PARTIAL) {
+ p.writeInt32 (RESPONSE_UNSOLICITED_ACK_EXP);
+ } else {
+ p.writeInt32 (RESPONSE_UNSOLICITED);
+ }
p.writeInt32 (unsolResponse);
ret = pRI->responseFunction(p, const_cast<void*>(data), datalen);