Age | Commit message (Collapse) | Author |
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
Add REPORTING_ALERTING_UPON_MISSING_CALL_STATE_FROM_NETWORK as a
supplementary build option.
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
* 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>
|
|
* 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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
Paths for defines PATH_DF_TELECOM_DIRECTORY and
PATH_ADF_USIM_DIRECTORY were swapped.
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Parameter <raw_proactive_command> was removed.
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
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>
|
|
USE_EARLY_NITZ_TIME_SUBSCRIPTION must be set to enable this
change.
Signed-off-by: Sverre Vegge <sverre.vegge@stericsson.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|