summaryrefslogtreecommitdiffstats
path: root/reference-ril
diff options
context:
space:
mode:
authorNaveen Kalla <mrnaveen@google.com>2016-10-11 13:49:20 -0700
committerNaveen Kalla <mrnaveen@google.com>2016-11-02 11:56:25 -0700
commit2baf72329c43d9e3f7850973f087176f535e31e8 (patch)
tree43afdc6237939a9d7290478720230c004da1028d /reference-ril
parentb3897e117062b70a33372e61ec668ed2811cb910 (diff)
downloadandroid_hardware_ril-2baf72329c43d9e3f7850973f087176f535e31e8.tar.gz
android_hardware_ril-2baf72329c43d9e3f7850973f087176f535e31e8.tar.bz2
android_hardware_ril-2baf72329c43d9e3f7850973f087176f535e31e8.zip
Remove deprecated RADIO_STATES
Remove deprecated radio states which carried the SIM state information. Vendor RILs are not expected to send one of the 3 RADIO states (ON, OFF or UNAVAILABLE) and support the RIL requests RIL_REQUEST_VOICE_RADIO_TECH and RIL_REQUEST_CDMA_SUBSCRIPTION_SOURCE. Bug: 32224323 Test: Ensure device boots and camps on network. Basic voice calls and mobile data works Change-Id: I2ae4a71c33c43263c64822c294d43363baeb5ad5
Diffstat (limited to 'reference-ril')
-rw-r--r--reference-ril/reference-ril.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/reference-ril/reference-ril.c b/reference-ril/reference-ril.c
index 6d694e3..c422e86 100644
--- a/reference-ril/reference-ril.c
+++ b/reference-ril/reference-ril.c
@@ -156,7 +156,7 @@ static int is3gpp2(int radioTech) {
typedef enum {
SIM_ABSENT = 0,
SIM_NOT_READY = 1,
- SIM_READY = 2, /* SIM_READY means the radio state is RADIO_STATE_SIM_READY */
+ SIM_READY = 2,
SIM_PIN = 3,
SIM_PUK = 4,
SIM_NETWORK_PERSONALIZATION = 5,
@@ -2768,7 +2768,7 @@ static void pollSIMState (void *param __unused)
ATResponse *p_response;
int ret;
- if (sState != RADIO_STATE_SIM_NOT_READY) {
+ if (sState != RADIO_STATE_UNAVAILABLE) {
// no longer valid to poll
return;
}