OSDN Git Service

ril: make sure ril response on RIL version error
authorMeng Wang <mewan@google.com>
Wed, 25 May 2016 19:59:15 +0000 (12:59 -0700)
committerMeng Wang <mewan@google.com>
Wed, 25 May 2016 19:59:15 +0000 (12:59 -0700)
commitdf8398cf7a21d512d36d64d896f90e1d04bbc95f
tree8d07cb12a41f548a8e444ef14f3623f15750dcec
parentb4e343127f3bbf782a56849d80f7278c49c563ee
ril: make sure ril response on RIL version error

Fix issue: in dispatchCarrierRestrictions(), when unsupported RIL
version detected, no RIL response is received.
Root cause: the error handling code doesn't send actual RIL request.
Solution: call RIL_onRequestComplete() so that RIL response with
designated error code like RIL_E_REQUEST_NOT_SUPPORTED.

Bug: 28564314
Change-Id: I3f91cf1d14f39813471b36f1fe4c4e0d9f6dbd60
libril/ril.cpp