[ofono] Handle gril ioconnection shutdown by exit

Before: gril connection hand up (G_IO_HUP) causes ofono gril
to shutdown and no messages are handled.
After: gril notifies ril plugin which emits a message
to clients and exits ofono.

Signed-off-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com>
[rilmodem] Do not close the ofono if rild dies

There is no need to kill ofono if connection to rild dies. We just
need to inform client about connection drop and try again

Signed-off-by: Jussi Kangas <jussi.kangas@oss.tieto.com>
[sim]recommit id:e2f46ce868fec8c797545de851f91f78a85226a2

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
[rilmodem] Remove unnecessary 'fake' held status when dialing 2nd call
[rilmodem] Call direction bookkeeping

Signed-off-by: Martti Piirainen <martti.piirainen@oss.tieto.com>
[rilmodem] Configure the tech preference only once

Information if the configuration has been done or not cannot be
stored to same file where configuration is read from due the lack
of priviledges. This change makes ofono to store the information
to same place as any other setting stored by ofono.

Signed-off-by: Jussi Kangas <jussi.kangas@oss.tieto.com>
[gdbus] Handle dbus disconnect signal

A previous patch stopped ofono from crashing when it received the disconnect signal (which has no sender). However this wasn't enough. gdbus/mainloop.c actually registers a listener for the disconnect signal, so message_filter should dispatch it.

This patch makes sure of that, and hardens message_filter's loop against any other fields which might be NULL. (the logic: if the data-> field is NULL it means don't filter on that value; if the message field is NULL then only match data structs that have that field NULL.)

Without this patch, if dbus is restarted ofonod will hang around and be useless until the next reboot.
[ril] Leave extra capabilities as radio cannot set IP address

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
[ril] run ofono as root

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
[ril] Multiple PDP context support for rilmodem

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
[ril] fix merge and some style issues

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
[smshistory] Create org.ofono.SmsHistory API

Signed-off-by: Martti Piirainen <martti.piirainen@oss.tieto.com>
Revert "[doc] Add description of org.ofono.MessageManager.StatusReport"

This reverts commit f8366d1b65d0faf1b093b4e09231d9f64cda732e.
[rilmodem] Fix assert warning in development mode

Before configuration is stored LTE configuration storage is empty
and causes assert notification in devel mode when keyfile is read.
This fix removes the problem.

Signed-off-by: Jussi Kangas <jussi.kangas@oss.tieto.com>
[rilmodem] Fix for call waiting status query

As stated on 3GPP 27.007, 7.12 Call waiting +CCWA:
"When querying the status of a network service (<mode>=2) the response
line for 'not active' case (<status>=0) should be returned only if service is
not active for any <class>."
If status is 'active', rilmodem will provide bitmap of service classes having
CW enabled to oFono core. Core will mask from this bitmap, whether CW
is enabled for voice call

Signed-off-by: Petri Takalokastari <petri.takalokastari@oss.tieto.com>
[voicecall] Fix compiler warnings

Fix 'unused variable' compiler warnings introduced by commit 6aafbe93744b366518fe5cd69661d5998ae70958.

Signed-off-by: Martti Piirainen <martti.piirainen@oss.tieto.com>
[ofono][rilmodem] OemRaw interface and rilplugin implementation

Signed-off-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com>