From: jsh Date: Thu, 24 Jun 2010 04:53:24 +0000 (-0700) Subject: Support for fetching PSC of serving cell. X-Git-Tag: android-x86-4.4-r1~69^2~7^2~2 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fhardware-ril.git;a=commitdiff_plain;h=f44700c40c612f73b7ef3264828efb8923906f8a Support for fetching PSC of serving cell. Instead of adding a new RIL command, just extend RIL_REQUEST_REGISTRATION_STATE. Bug: 2465036 Change-Id: I8f42bb8da65ec7d2f7627b14d7506c38b71ad83d --- diff --git a/include/telephony/ril.h b/include/telephony/ril.h index a2b085e..4bd9442 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -1109,6 +1109,10 @@ typedef struct { * 8 - No Suitable Cells in this Location Area * 9 - Network failure * 10 - Persistent location update reject + * ((const char **)response)[14] is the Primary Scrambling Code of the current + * cell as described in TS 25.331, in hexadecimal + * format, or NULL if unknown or not registered + * to a UMTS network. * * Please note that registration state 4 ("unknown") is treated * as "out of service" in the Android telephony system @@ -2959,7 +2963,6 @@ typedef struct { */ #define RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING 103 - /***********************************************************************/ diff --git a/libril/ril.cpp b/libril/ril.cpp index 591db49..f31c516 100644 --- a/libril/ril.cpp +++ b/libril/ril.cpp @@ -3061,6 +3061,7 @@ requestToString(int request) { case RIL_REQUEST_GET_SMSC_ADDRESS: return "GET_SMSC_ADDRESS"; case RIL_REQUEST_SET_SMSC_ADDRESS: return "SET_SMSC_ADDRESS"; case RIL_REQUEST_REPORT_SMS_MEMORY_STATUS: return "REPORT_SMS_MEMORY_STATUS"; + case RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING: return "REPORT_STK_SERVICE_IS_RUNNING"; case RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED: return "UNSOL_RESPONSE_RADIO_STATE_CHANGED"; case RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED: return "UNSOL_RESPONSE_CALL_STATE_CHANGED"; case RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED: return "UNSOL_RESPONSE_NETWORK_STATE_CHANGED";