OSDN Git Service

Data recovery failure due to apn/dc state stuck in "disconnecting"
authorKazuhiro Ondo <kazuhiro.ondo@motorola.com>
Fri, 3 Jun 2011 02:41:16 +0000 (21:41 -0500)
committerWink Saville <wink@google.com>
Fri, 3 Jun 2011 18:42:48 +0000 (11:42 -0700)
commit77c9411306b6b3d210d22214d596272c9728cf5e
tree4b2fd058050919b2e1277aa4bca99c632d0efaf7
parentf5699b82adef34b0b6bd88554c6a017f8662985e
Data recovery failure due to apn/dc state stuck in "disconnecting"

If rild is reset while RIL_DEACTIVATE_DATA_CALL is pending
response, the ApnContext is not force cleaned up since
link to DCAC is cleared in the begining of release.

This patch fixes:
1) Hold DCAC reference until the DC is disconnected. This is
   to ensure DC won't be stuck in DcDisconnectingState so force
   reset can kick in.
2) In "clearCleanUpConnection", make sure the status of ApnContext
   can be reset to IDLE even if no reference to DCAC.

Change-Id: Ic69271da7c6bc9dcb2c38ec53a9bd2e8ce785adc
telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java