aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-08-03OEM RIL: Added support for Fast DormancyHEADmasterGjermund Hodnebrog
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-03OEM-RIL: Changes for Sim Access commandAsheesh Saraswat
Added new command U300_RIL_OEM_MSG_SIM_ACCESS also changed the old U300_RIL_OEM_MSG_SIM_COMMAND to U300_RIL_OEM_MSG_UICC_LOGICAL_CHANNEL_ACCESS Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-03SIM: Update of ECC list handlingGjermund Hodnebrog
1. Update ECC list when SIM is ready (needed for PIN lock) 2. Update ECC list when going to home network (needed for seamless handover back to home country) 3. Treat MCC 441 as Japanese in addition to MCC 440 Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-03Audio: Resetting audio static variable s_voiceCallStart at modem restartKim Tommy Humborstad
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-03SIM: Added printing current detected SIM card state and substateKim Tommy Humborstad
Since vanilla Android does not use all SIM information it is important that what STE generic RIL reports is documented somewhere. This is done through a LOGD print. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-03SIM: Handle wrong SIM cards and report CARDSTATE_ERROR to AndroidGjermund Hodnebrog
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-03Callhandling: New AT command for DTMF controlGjermund Hodnebrog
AT*EDTMF is introduced to be able to explicitly start and stop DTMF tones. This replaces the workaround using AT+VTD and AT+VTS. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-03General: REPORTING_ALERTING_UPON_MISSING_CALL_STATE_FROM_NETWORKErwan Bracq
Add REPORTING_ALERTING_UPON_MISSING_CALL_STATE_FROM_NETWORK as a supplementary build option. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02Manager: Separate query and listen Dbus-connections.Andreas Ludviksen
Fix a race-condition where two threads might use the same dbus connection at the same time. Flush Dbus messages before statring the Dbus-thread. Initial Dbus messages are buffered, and not handled until the first trigger to poll(). This will flush these messages before starting the Dbus thread. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02Network: Respond to REGISTRATION_STATE even if AT*EWSCI failsGjermund Hodnebrog
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02SIM: Improve SIM detection + add CPHS related files to USIM tableGjermund Hodnebrog
Need to check PIX in addition to RID in AT+CUAD repsonse for SIM detection. Also CPHS related SIM files needed to be added to usim table used for SIM_IO path correction. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02CallForwarding: Set/handle time value in AT+CCFCGjermund Hodnebrog
When reason is "no reply", RIL_REQUEST_QUERY_CALL_FORWARD_STATUS should return timeSeconds value from AT+CCFC response. Also when reason is "no reply" and status is "enable" or "registrarion" timeSeconds parameter from RIL_REQUEST_SET_CALL_FORWARD should be included in AT+CCFC. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02SIM: Remove SIM_IO workaround and replace AT+CGLA with AT+CRLAGjermund Hodnebrog
Due to CR that implements AT+CRLA in AT and SIM AT+CRSM stopped working with 2G SIM cards. In case of 3G USIM we should not always issue AT+CRSM first, because it will now fail every time. Now we should use AT+CRLA in case of 3G USIM and AT+CRSM only in case of 2G SIM. Legacy functionality may be enabled under flag USE_LEGACY_CRSM_CGLA_SIM_ACCESS (default off). Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02SHUTDOWN: Hold POWER_REQUEST response until 'off' is received from MIDAndreas Ludviksen
Check if android property 'sys.shutdown.requested' is set when receiving RIL_REQUEST_RADIO_POWER (0), and wait for 'off' signal before returning to Android. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02Manager: Code moved from RIL_Init beacuse it needs to return immediatlyKim Tommy Humborstad
* Netlink interface setup moved from RIL_Init to manager thread. Also all waiting loops for dbus and MID "on" message moved to manager thread. This was requred to not hold RIL_Init any longer than nessasary so that RIL daemon can connect to Android framework. * Enabling of SAT in initializeDefault removed. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02Generic: queueRunner synchronizationKim Tommy Humborstad
* RIL queueRunners are now synchronized so runners do not start handling requests before the default thread has finished its initialization. * Screenstate is now properly handled in all modem states. If screenstate request is received in state RADIO_STATE_UNAVAILBLE (when modem communication is impossible) the state is stored and executed as soon as modem is available. * NOTE: A workaround is added for handling the long RIL_Init() delay. This is required since Android framework will bounce early RIL requests when RIL_Init() is not finished. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02SHUTDOWN: Adjust property-check according to AndroidAndreas Ludviksen
As long as the sys.shutdown.requested property is set, android is preparing for shutdown. Regardless of the value. If Dbus is disabled in the RIL, wait 2 seconds after CFUN=100 is received before returning to Android. This will allow the MID some time to do CFUN=0 or toggle GPIO. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02Generic: Restart modem and try again if connecting to socket failsAndreas Ludviksen
Check return value from the connect() call on CAIF and UNIX sockets and restart modem and start init process over again if the connect fails. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02Manager: Ensure dbus daemon and MID is up before creating IFsAndreas Ludviksen
Improve handling of global variables. RIL needs to be syncronized with the Dbus daemon and the MID. If EXTERNAL_MODEM_CONTROL_MODULE_DISABLED is not set the RIL will: * Loop until 'dbus_bus_get' can connect to system dbus. * Hold initialization until modem is started. * Move interface creation to after modem is started. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02SIM: Handle sim reset.yiming
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02STK: Enable <raw_proactive_command> in UNSOL_STK_EVENT_NOTIFY.Sverre Vegge
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02STK: Allow STK commands in RADIO_STATE_SIM_LOCKED_OR_ABSENTSverre Vegge
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02STK: Path parameter of *ESHLREF is hex stringGjermund Hodnebrog
An fault in the AT manual probably caused this implementation fault in the RIL. Also rewrote the for loop that was hard to read and understand. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02STK: Run all STK AT commands on the DEFAULT AT channel.Sverre Vegge
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02STK: Send RIL_UNSOL_STK_EVENT_NOTIFY even if raw SAT command not present.Sverre Vegge
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-08-02STK: Wrong AT command used in terminal response after refreshGjermund Hodnebrog
AT*STKR should only be issued in case RIL is configured to use legacy SAT commands. Else we need to issue AT+CUSATT command when sending terminal response to modem/SIM. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25Manager: Added join() to synchronize threads manager and queueRunnersKim Tommy Humborstad
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25Generic: Improved static variable handling during modem independent restartKim Tommy Humborstad
Grouped static variables and implemented a way to keep control of resetting variables upon modem independent restart. Some variables also needs to be re-reported to Android upon reset and some need to be re-set in the modem. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25SHUTDOWN: Support Android initiated system shutdownAndreas Ludviksen
Check system property 'sys.shutdown.requested' to determine if Android plans on shutting down system. In this case we send CFUN=100 (Prepare shutdown) to the modem. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25AT channel: handle command without response prefixMagnus Reftel
Added at_send_command_with_echo, which can be used for sending AT commands that have responses without prefixes. There is a race condition in at_send_command_multiline etc. with such AT commands that can only be avoided by having echo on while sending the command, which is what at_send_command_with_echo does. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25SIM: Application indexes are initialized to out-of-range valueGjermund Hodnebrog
ril.h specifies that the value of GSM/WCDMA and CDMA application indexes must be smaller than RIL_CARD_MAX_APPS. These were set to RIL_CARD_MAX_APPS. New default value is -1. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25NETWORK: Neighbor cell search return failure if no cells are foundAndreas Ludviksen
Neighbor cell search commands AT*EGNCI and AT*EWNCI may return no cells. For this case the RIL need to report success, but no etries in the neighbor-list. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25Manager: Prevent modem reboot req. when already restartingKim Tommy Humborstad
Fixed a race condition where reboot would be requested when a restart was already ongoing. Also fixed potential buffer overflow in DBUS communication. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25Information: Read IMEISV from modemSverre Vegge
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25SIM: Return number of retries in successful SET FACILITY LOCKSverre Vegge
RIL should return number of retries left when setting facility lock "FD" even in successful case. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-07-25SIM: Wrong path in SIM directory definesGjermund Hodnebrog
Paths for defines PATH_DF_TELECOM_DIRECTORY and PATH_ADF_USIM_DIRECTORY were swapped. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19SIM: Allow entering PIN/PIN2 at any timeGjermund Hodnebrog
When ME is not waiting for PIN/PIN2 it is not possible to enter PIN/PIN2 using AT+CPIN command. Added support for entering PIN/PIN2 using AT+CPWD. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19SIM: Distinguish between PUK1/PUK2 permanently blockedGjermund Hodnebrog
When either PUK1 or PUK2 is blocked, AT+CPIN? responds +CPIN: BLOCKED. RIL needs to issue AT*EPINR to distinguish if PUK1 or PUK2 is permanently blocked when reporting to Android. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19Manager: Added support for modem independent restartKim Tommy Humborstad
Modem independent restart added. This includes support for detecting problems with AT channels and triggering a restart of the modem and handling of independent restart indications from the system. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19STK: Envelope Command response may be optionalSverre Vegge
Updated RIL_REQUEST_SEND_ENVELOPE_COMMAND to handle optional +CUSATER/*STKE intermediate response. Changed minimum interval between RSSI reports to 2 seconds. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19Callhandling: Filter out proprietary exit cause valuesGjermund Hodnebrog
The ST-Ericsson modems supports proprietary exit cause values in UR code *ECAV that Android does not understand. These must be mapped to CALL_FAIL_ERROR_UNSPECIFIED (0xFFFF). Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19STK: Format of UR code *ESHLREF changedGjermund Hodnebrog
Parameter <raw_proactive_command> was removed. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19SMS: Do not suggest retry when SMS send fails due to no networkGjermund Hodnebrog
When trying to send SMS using AT+CMGS and it fails due to CMS error CMS_NO_NETWORK_SERVICE, the RIL must not indicate that Android should retry (RIL_E_SMS_SEND_FAIL_RETRY). This behaviour breaks 3GPP TS 34.123, TC16.1.2. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19PDP: Introduce flag to limit MTUGjermund Hodnebrog
Setting flag RIL_MAX_MTU will limit MTU to specified value, the unit is bytes and the default value is 1500. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19INIT: Added support for early subscription for NITZ timeGjermund Hodnebrog
USE_EARLY_NITZ_TIME_SUBSCRIPTION must be set to enable this change. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19Structure: Move RIL_Init and dbus handling to separate file.Andreas Ludviksen
Re-structure to isolate the dbus-handling. This commit is a pre-requisite for the upcoming work with modem independent restart. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19PDP: fixed property_set_verified to return fail upon verify timeoutAndreas Ludviksen
Function 'property_set_verified' need to return fail if we fail to read back the android property. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19SIM: Return number of retries in successful SET_FACILITY_LOCKGjermund Hodnebrog
RIL should return number of retries left when setting facility lock "SC" even in successful case. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19PDP: Handle network initiated PDP disconnection during screen offGjermund Hodnebrog
Removed disabling of UR code +CGEV during screen off. +CGEV does not happen frequency and this change is therefore not considered to affect power consumption considerably. Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
2011-05-19Generic: More RIL requests should be available in radio offGjermund Hodnebrog
The following RIL requests does not need radio on to function: RIL_REQUEST_GET_IMEISV RIL_REQUEST_GET_IMEI RIL_REQUEST_DEVICE_IDENTITY RIL_REQUEST_BASEBAND_VERSION Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>