summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2011-11-22 21:50:42 +0100
committerPaulK <contact@paulk.fr>2011-11-22 21:50:42 +0100
commit233f0f23c75971de36d77605572c9df6b344ca73 (patch)
tree06598ad50aa97a30041d05ab9c0e8d13c797ea51 /util.c
parent791fd3e4a946c05d6598f5054075515df6327b7d (diff)
downloadhardware_ril_samsung-ril-233f0f23c75971de36d77605572c9df6b344ca73.zip
hardware_ril_samsung-ril-233f0f23c75971de36d77605572c9df6b344ca73.tar.gz
hardware_ril_samsung-ril-233f0f23c75971de36d77605572c9df6b344ca73.tar.bz2
Modified samsung-ril to work on Nexus S.
Currently, the following is working: * (automatic) network registration (clean and stable) * SMS (no clean queue engine and no support for multiple message SMS) * SIM I/O * Other minor stuff And the following is left to do: * DATA (3G) * airplane to normal power mode * calls (including audio routing) * RFS messages handling (mostly to be done at IPC level) * Other minor stuff
Diffstat (limited to 'util.c')
-rw-r--r--util.c77
1 files changed, 0 insertions, 77 deletions
diff --git a/util.c b/util.c
index 3e33e0f..dc13866 100644
--- a/util.c
+++ b/util.c
@@ -57,80 +57,3 @@ void bin2hex(const unsigned char *data, int length, char *buf)
*p = '\0';
}
-
-/**
- * Converts IPC network registration status to Android RIL format
- */
-unsigned char registatus_ipc2ril(unsigned char status)
-{
- switch(status) {
- case 1:
- return 0;
- case 2:
- return 1;
- case 3:
- return 2;
- case 4:
- return 13;
- case 5:
- return 14;
- case 6:
- return 5;
- default:
- LOGE("%s: invalid status %d", __FUNCTION__, status);
- return 255;
- }
-}
-
-/**
- * Converts IPC network access technology to Android RIL format
- */
-unsigned char act_ipc2ril(unsigned char act)
-{
- switch(act) {
- case 1:
- case 2:
- return 1;
- case 3:
- return 2;
- case 4:
- return 3;
- default:
- return 0;
- }
-}
-
-/**
- * Converts IPC preferred network type to Android RIL format
- */
-unsigned char modesel_ipc2ril(unsigned char mode)
-{
- switch(mode) {
- case 0:
- return 7;
- case 1:
- case 3:
- return 1;
- case 2:
- case 4:
- return 2;
- default:
- return 255;
- }
-}
-
-/**
- * Converts Android RIL preferred network type to IPC format
- */
-unsigned char modesel_ril2ipc(unsigned char mode)
-{
- switch(mode) {
- case 1:
- return 2;
- case 2:
- return 3;
- default:
- return 1;
- }
-}
-