summaryrefslogtreecommitdiffstats
path: root/samsung-ril.h
Commit message (Collapse)AuthorAgeFilesLines
* ril_radio_state_check: rename it to increase clarity.Denis 'GNUtoo' Carikli2019-06-211-1/+1
| | | | | | | The former name of the function doesn't convey what it's supposed to do. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* WIP: Workaround to make the ril compile without a wrapperDenis 'GNUtoo' Carikli2019-06-211-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | This libril needs to be converted to version 12 This commit has insights on how to do that: 2baf723 Remove deprecated RADIO_STATES => Rework it by getting SIM state instead of relying on the radio states Instead of directly going to convert it to split the SIM states and the radio states, we are going to do a two step conversion: - First we make it work with the Ril version 12 with the least amount of changes. This will enable to quickely test the ril and get less probability of regressions. - Once this is done, a more in depth conversion will be done, while keeping the code as clean as possible, and trying to keep the compatibility with RIL < 6 if possible. Note that the deprecated RADIO_STATEs were already deprecated in the RIL used by Replicant 6, so if it's not possible to keep the code clean and still be compatible with older versions, we could just convert the code without affecting the ability to run this RIL on Replicant 6, assuming that no regressions are introduced in the process. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add support for USSD messagesWolfgang Wiedmeyer2019-06-181-0/+14
| | | | | | | | | | | The implementation is based on the code for USSD support that was used before the rewrite of Samsung-RIL. USSD messages in GSM7 format are decoded to UTF8. The decoding code was adapted from huaweigeneric-ril[1]. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> [1] https://github.com/DerArtem/huaweigeneric-ril
* samsung-ril-socket: mic mute implementationWolfgang Wiedmeyer2019-06-181-0/+1
| | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* client: RIL state update delegation, no client destroy, IPC client boot in openreplicant-4.2-0004replicant-4.2-0003Paul Kocialkowski2014-10-041-1/+0
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Samsung-RIL rewrite: harder, better, probably not faster but definitely strongerPaul Kocialkowski2014-08-071-383/+333
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* RIL_LOG macro to log messagesreplicant-4.2-0002replicant-4.2-0001Paul Kocialkowski2013-12-201-6/+12
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Send internal SMS to alert the user when an important crash just happenedPaul Kocialkowski2013-09-291-0/+6
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Check modem state before RIL requests and properly report it on crashPaul Kocialkowski2013-09-281-4/+7
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* sms: Write/delete SMS on SIM supportPaul Kocialkowski2013-09-011-0/+5
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* svc: Implement Samsung Service Mode OEM HookPaul Kocialkowski2013-08-251-0/+43
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Follow changes in libsamsung-ipc APIPaul Kocialkowski2013-07-031-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Update copyright informationPaul Kocialkowski2013-03-311-2/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Define and use RIL_TOKEN_NULLPaul Kocialkowski2013-03-311-0/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* sat: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-311-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* sec: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-311-5/+5
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* net: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-311-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* call: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-311-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-311-0/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* client: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-301-0/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* pwr: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-301-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* snd: Refactor code, check for NULL pointers and prevent memory leaksPaul Kocialkowski2013-03-301-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Rename samsung-ril to Samsung-RIL, refactor Android.mk and comments stylePaul Kocialkowski2013-03-301-12/+12
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* pwr: Handle phone reset messagePaul Kocialkowski2013-03-071-0/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* pwr: Wait for IPC_PWR_PHONE_PWR_UP to complete startupPaul Kocialkowski2013-03-061-0/+3
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* sec: Handle various SIM I/O message formats based on SIM ICC typePaul Kocialkowski2013-02-091-1/+3
| | | | | | Also make request id registration override older requests. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* sec: Send SIM I/O requests one after anotherPaul Kocialkowski2013-02-091-2/+17
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* compat: Removed separate header: apply per-version changes in the codePaul Kocialkowski2013-02-091-1/+17
| | | | | | | | This is especially relevant when the elements of the structures changed or need a different handling in the code: that way, we don't confuse which structure is declared. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* sec: Rewrite SIM I/O functionsPaul Kocialkowski2013-02-091-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SAT: Rename STK functions, disable STK by defaultPaul Kocialkowski2012-12-151-5/+5
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Copyright: Corrected email addressPaul Kocialkowski2012-11-191-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SRS: Rework to handle multiple clients in a better wayPaul Kocialkowski2012-11-051-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Updated copyright informationPaul Kocialkowski2012-11-041-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SMS: Use lists stored in ril_data instead of global tablePaul Kocialkowski2012-11-041-22/+18
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SMS: Process next incoming message after failurePaul Kocialkowski2012-11-041-0/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SMS: Use lists stored in ril_data instead of global tpid tablePaul Kocialkowski2012-11-011-5/+17
| | | | | | Some strutures were also renamed to Stick to libsamsung-ipc changes Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* GPRS: Use lists stored in ril_data instead of global tablePaul Kocialkowski2012-11-011-4/+8
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* GEN: Use lists stored in ril_data instead of global tablePaul Kocialkowski2012-11-011-8/+13
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Reworked RIL requests, globals, SIM status, clientPaul Kocialkowski2012-11-011-77/+75
| | | | | | | | | | | * Handling ril requests with lists * Renamed functions to complete requests * Globals (most of them) are held in ril_data * Renamed SIM_Status to ril_sim_state * Renamed client object to data * Moved client funcs to a sub-structure Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* GPRS: Fixed style, compat and RIL_VERSION < 6 return data on SETUP_DATA_CALLPaul Kocialkowski2012-09-071-0/+4
| | | | | | SEC/SMS: Fixed compat Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Stick to the latest libsamsung-ipc changesPaul Kocialkowski2012-09-061-6/+6
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Cosmetics: removed lines with tabs or spacesPaul Kocialkowski2012-08-281-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Rework SRS to support multiple clientsAlexander Tarasikov2012-08-271-1/+1
| | | | | | This fixes deadlocks on Galaxy Nexus (Tuna) when GPS/NFC libraries open the socket thus preventing in-call audio from functioning
* Merge remote-tracking branch 'ksys/master' into replicant-mergeAlexander Tarasikov2012-08-241-0/+2
|\ | | | | | | | | | | Conflicts: gprs.c net.c
| * Add the compat.h header to multiple Android treesAlexander Tarasikov2012-08-231-14/+1
| |
| * Fix some compilation warningsAlexander Tarasikov2012-07-251-1/+2
| |
| * Fix compilation on jellybeanAlexander Tarasikov2012-07-231-0/+14
| |
* | GPRS: Get and store interface given the cid, cleanup and other fixesPaul Kocialkowski2012-07-081-0/+1
| | | | | | | | | | | | | | | | | | * Interface is asked given the CID * Interface string is stored in the per-cid connection structure * Activate GPRS handler before getting the iface string * Cleaned TODO list and some misused LOG levels Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* | GPRS: Improved stability with status, fail cause and per-cid handlingPaul Kocialkowski2012-07-081-3/+21
| | | | | | | | | | | | | | | | | | | | * GPRS call status handling (state and fail cause) * Last call fail cause reporting * Data call list reporting * Take GPRS call status in account before reporting connection change * Per-cid GPRS connection handling Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* | Call: Added last call fail cause supportPaul Kocialkowski2012-07-061-0/+3
|/ | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>