[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] Enhancing traces

We are getting too little traces in release mode and too much in
debug mode. This change fixes the problem

Signed-off-by: Jussi Kangas <jussi.kangas@oss.tieto.com>
[gril]revert grilio back to original

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
[gril]send all commands before destroying watch

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>
Fixed memory leak in provision_get_settings
[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>
[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>
[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>
Revert "Revert "[rilmodem] Make LTE configuration forcing working both ways""

This reverts commit bffa0c79a0bfa713e10104d70cb06be95568db95.

Conflicts:

	ofono/drivers/rilmodem/radio-settings.c
Merge pull request #143 from marttipiirainen/nextmerge

Merge 'next' branch to 'master'
[ofono][rilmodem] OemRaw interface and rilplugin implementation

Signed-off-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com>
[rilmodem] fix warnings from ril plugin

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>