[connman] change all connman_info to DBG

connman_info does not have file names in it's output, so it would not
be included in the block out by doing -d '*:!src/rtnl.c'

This effectively makes the output more manageable and readable when
debugging.
This included stat and newlink info clogging the output.
[connman] Enhance online check.

This enhances the online check by continusously checking for
connectivity if it fails. Previously it would check up to 12 times
and then give up. Don't give up, instead continue checking at the
maximum interval until it succeeds.

If the user changes the proxy configuration redo the online check.

Fixes issues with calling __connman_wispr_start() multiple times. If
there is a pre-existing wispr context it is cancelled, freed, and
recreated. However, no all network operations are cancelled or able to
be cancelled. Causes freed memory to be accessed when the network
operation completes.
[connman] Remove unrecognised option from configure.

Configure warns that it does not recognise --enable-threads.
gsupplicant: Avoid invalid read in scan_callback

If a pending scan_callback is called after a dongle removal,
invalid reads occur in connman_device_reset_scanning, for
instance. This patch cleans the callback, before dbus remove
interface is returned.
Merge pull request #91 from lpotter/debugs

[connman] change all connman_info to DBG
change all connman_info to DBG

connman_info does not have file names in it's output, so it would not
be included in the block out by doing -d '*:!src/rtnl.c'

This effectively makes the output more manageable and readable when
debugging.
This included stat and newlink info clogging the output.
Merge branch 'master' of https://github.com/mer-packages/connman into HEAD
doc: Fix some typos on coding style
ntp: Reset the source id after removal

Fixes this issue:
connmand[3288]: src/ntp.c:__connman_ntp_stop()
(connmand:3288): GLib-CRITICAL **: Source ID 144 was not found when
 attempting to remove it
device: Remove unused device->devname
test: Improve p2p-on-supplicant test script for P2P connection

- Provide a device name for the local p2p device
- join or negociate for a group according to distant peer
- GroupFinished signal handler added by
  Eduardo Abinader <eduardo.abinader@openbossa.org>
network: Properly remove addresses when DHCPv4 lease is lost

As addresses were not properly removed, the D-Bus API showed IP
addresses even if the interface addresses and routing entries
were removed when the DHCP lease was lost. Also ensure that the
network is no longer associating, should the lease have been
lost at startup. As the DHCP code will nowadays continue trying
after a lease is lost, don't make the upper layers stop the
DHCP procedure.

Add better logging so that lease acquired and lease lost can be
properly noticed.
test: Remove minor typos in p2p-on-supplicant
test: Argument parsing for p2p-on-supplicant

Argument parsing functionality for commands and options:
 - dbus is now wpa_s property
 - help is being shown from the command_list built in arg parse time
 - added enum like class (ArgFields) for future options in arg parsing
gsupplicant: Fix an emptyness test on an array

Reported by Daniel Wagner <daniel.wagner@bmw-carit.de>
technology: Fix a false positive NULL dereference

P2P technology cannot exist without wifi technology, so if P2P is
present, wifi is present as well. Thus what coverity thinks is a NULL
dereference is a false positive here.

Reported by Daniel Wagner <daniel.wagner@bmw-carit.de>
wifi: Check the returned code when registering the P2P technology driver

Reported by Daniel Wagner <daniel.wagner@bmw-carit.de>
wifi: Don't fetch interface name from device structure

Update the code to use connman_inet_ifname() when fetching the
interface name. This prevents the wifi plugin from using a
previous interface name should an interface rename event have
happened.
gsupplicant: Allocate memory for data that is to be used in callback

When gsupplicant is handed interface data, allocate memory for the
supplied strings as the caller might free them at any point. Create
a helper function freeing the strings and the structure itself.
test: Fix code style in p2p-on-supplicant

Just complying to code style.