OSDN Git Service

Fix libril.so crash issue caused by wrong switch logic of onRequest in reference...
authorJun Tian <jun.j.tian@intel.com>
Tue, 30 Jul 2013 03:07:22 +0000 (11:07 +0800)
committerWink Saville <wink@google.com>
Tue, 30 Jul 2013 20:03:43 +0000 (13:03 -0700)
commita1a0952a703d66dee1a749976b061a16c6e642a0
tree18b8a5fb3925bdacb5b525fce33b2610e9e4a2b5
parentc57b3eb525db241bd3e6092453f48388bc880447
Fix libril.so crash issue caused by wrong switch logic of onRequest in reference-ril.c

If the tech is not CDMA, it will fall-through to the default case.
But the new added RIL_REQUEST_GET_CELL_INFO_LIST and RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE
cases will intercept it and cause the request call into wrong request functions.
Move these two new requests before the CDMA cases to fix the logic issue.

Bug: 9193696
Change-Id: I2cb03cbdb6be8eb1afd92c01c764e87b6aa62796

Signed-off-by: Jun Tian <jun.j.tian@intel.com>
Signed-off-by: Panfeng Chang <panfengx.chang@intel.com>
Signed-off-by: Yanglin Zhu <yanglinx.zhu@intel.com>
Signed-off-by: Jackie Wu <jackie.wu@intel.com>
reference-ril/reference-ril.c