Merge pull request #156 from jpoutiai/master

[rilmodem] add missing brace characters
[rilmodem] Add Call Barring support

Signed-off-by: Miia Leinonen <miia.leinonen@oss.tieto.com>
[rilmodem] Fix for Call Barring commit

Signed-off-by: Miia Leinonen <miia.leinonen@oss.tieto.com>
[rilmodem] Add initial SIM ATK support

Add initial SIM ATK implementation to rilmodem driver, supporting
proactive command, terminal response and envelope.

Signed-off-by: Petri Takalokastari <petri.takalokastari@oss.tieto.com>

[rilmodem] Fix proactive command and terminal response handling

Convert the proactive commands and terminal responses to correct
format

[rilmodem] Fix for envelope sending

Fix typo in envelope sending causing ofono crash

[rilmodem] stk: adjust timings

Adjust the registeration of the rilmodem stk service and usage of timer
when reporting to RIL when ready to receive proactive commands

[rilmodem] Fix for terminal response and envelope construction

Remove usage of strlen, so the terminal responses and envelopes ending
with value 0x00 are sent properly.

[rilmodem] Remove timer usage from start up sequence

Remove usage of timers in startup sequence. Report ofono readiness to
receive proactive commands only when agent has registered.

[rilmodem] Fine tuning of start up sequence

Register to listen STK specific unsolicited messages only if UI STK agent
has registered. This because RILD will send and buffer proactive commands
also if not received RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
previously. RILD will buffer the proactive command until receiving
RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING or terminal
response to (sent) proactive command.
By this change oFono core/rilmodem will not handle proactive commands
until STK UI agent has been registered to oFono.

[rilmodem] Change envelope sending request

Changed envelope sending request from
RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS to
RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND as it seems that RILD
does not support RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS
properly.
Also cleaned up some excessive tracing.
[rilmodem] Ack sms receiving also when error

According to ril api also the failed receiving of SMS should be
acked to ril.

Signed-off-by: Jussi Kangas <jussi.kangas@oss.tieto.com>
Merge pull request #163 from marttipiirainen/next

Merge Call Barring support, SIM ATK support and SMS ACK bugfix from 'next' to 'master'
Ensure that AP list has one INTERNET and one MMS access point

Also, minimized differences with upstream version of provision.c
Merge pull request #164 from jkangas/next

Ensure that AP list has one INTERNET and one MMS access point
[build] Fix network time plugin build issues

Link clock functions explicitly to the POSIX realtime library when using glibc version < 2.17 (otherwise, some compilation environments implicitly link libpthread, others fail). Also, there was a typo that broke the '--disable-nettime' configure option.

Signed-off-by: Martti Piirainen <martti.piirainen@oss.tieto.com>
Merge pull request #166 from marttipiirainen/next

[build] Fix network time plugin build issues
[voicecall] Read the EFECC also if SIM goes straigth to READY

It is possible that ofono starts so that SIM is already in
in READY state when voicecall gets the information. In that case
without this fix core never asks the emergency numbers

Signed-off-by: Jussi Kangas <jussi.kangas@oss.tieto.com>
Merge pull request #167 from jkangas/next

Request for pulling EFECC reading when READY to main branch
[gprs] Create and provision MMS context if it doesn't exist

This is necessary to handle the upgrade scenario from an ofono version
that doesn't support MMS to the one that does.
Push forwarder plugin
[gril] Clean useless cast and improve handle_unsol_req readability
Merge pull request #170 from leinomii/next

Clean useless cast and improve handle_unsol_req readability
[rilmodem] Allow subscription of stk notifications only once

Allow subscription of stk notifications only when simkit agent registers
for first time. This implementation fixes double subscription problems
which may happen if simkit agent has exited and restarts subscribing to
stk commands again.

Signed-off-by: Petri Takalokastari <petri.takalokastari@oss.tieto.com>
Merge pull request #172 from ptakalok/subscribe

[rilmodem] Allow subscription of stk notifications only once
[rilmodem] Set current UI system language to environment variable

Read current terminal UI language from configuration file and set it as
environment variable for provide local information proactive command.

Signed-off-by: Petri Takalokastari <petri.takalokastari@oss.tieto.com>
Merge pull request #176 from ptakalok/language

[rilmodem] Set current UI system language to environment variable