[connman] log: allow disabling certain logs

Log patterns prefixed with ! disable the logging. That makes it
possible to enable logs everywhere except for the specific files
which don't interest the person doing the debugging.
[connman] ofono: fixed memory leak

Free connman_ipaddress prior to allocating the new one
[connman] service: Fix D-Bus return value when connecting a service

When the service is instantly connected or an error occured, remove
the pending call and report success or failure immediately to the
caller. When the connect procedure indicates -EINPROGRESS, the
caller will be informed later and no D-Bus reply is to be sent from
this function.

The service pending call needs to be set when calling
__connman_service_connect() as later stages in the code will decide
whether to ask an Agent for input based on its non-NULL value.

Reported by Aaron McCarthy <aaron.mccarthy@jolla.com>
Merge pull request #74 from amccarthy/master

[connman] service: Fix D-Bus return value when connecting a service
Merge pull request #72 from monich/log

log: allow disabling certain logs
Merge pull request #73 from monich/connman_ipaddress_free

ofono: fixed memory leak
[connman] service: plugged memory leak

The value returned by connman_storage_get_services() needs to be deallocated
with g_strfreev
[connman] allow user input request signal when using autoconnect.

If passphrase gets changed, it needs to pass on the user Input request
signal to clients to be able to re-autoconnect.
[connman] try connecting to failure state service.

Tries at least once regardless, if there still is invalid-key error,
send User Input Requested via agent. If user cancels that request,
stop trying to connect.

This helps when a wireless AP with same ssid/enc but unknown
comes within range. connman issues an invalid-key, as the passwords
are different. Which would cause connman to not try and connect when the
good, known AP comes within range.
[connman] fix crash and report error properly.
Merge pull request #68 from lpotter/master

[connman] allow user input request signal when using autoconnect.
Merge pull request #75 from monich/connman_storage_get_services

service: plugged memory leak
[connman] Increase maximum size of stats files.

The default maximum size of the stats files was 16 kB. However, now
that each record is approximately twice as big (due to the change from
32 bit to 64 bit data types) the number of records which can be stored
has halved. To compensate increase the default maximum size to 32 kB.
[connman] Fix erroneous data counters when roaming.

The home and roaming pointers in the stats file header are not updated
when summarising the history file. This can result in the home or
roaming pointer pointing to an invalid record. Fixed by setting both
values to UINT_MAX (invalid) when the history file is updated.
[connman] check service ID validity

storage: check service ID validity

Connman service ID is used, in the form it is read from storage, as
part of D-Bus path in connmand's D-Bus API. If the path constructed
using the service ID does not conform to D-Bus specifications, D-Bus
library assertion will cause connmand to exit; on restart the same
invalid ID is read from the storage and the assertion is triggered
again.

I experienced a connmand restart loop because some apparently
wispr-related memory corruption caused a service ID with binary
characters to be stored on disk. While that bug should be fixed also,
sanity-checking the service ID does not harm.
[connman] allow autoconnect when service is in failure state.
Merge pull request #6 from mer-packages/master

merge upstream to fork
Change the threshold for background scanning, -45 is actually very good RSSI.

Signed-off-by: Pasi Sjöholm <pasi.sjoholm@jollamobile.com>
[connman] do not start wifi scan if network is associating
Merge pull request #78 from lpotter/master

[connman] do not start wifi scan if network is associating