platform/upstream/connman.git
13 years agogsupplicant: fix return value of g_supplicant_interface_get_data()
Kalle Valo [Mon, 27 Sep 2010 21:44:21 +0000 (00:44 +0300)]
gsupplicant: fix return value of g_supplicant_interface_get_data()

g_supplicant_interface_get_data() was returning a const void pointer even
though the setter took a non-const pointer. Change get_data() to return
non-const as well.

13 years agogsupplicant: use term managed in object path
Kalle Valo [Mon, 27 Sep 2010 21:44:14 +0000 (00:44 +0300)]
gsupplicant: use term managed in object path

gsupplicant uses term "infra" instead of "managed" used by the old
wifi plugin. This forced connman to create a new service instead of using
the stored. For example, wifi_0026b6675606_76616c6f_managed_psk
vs wifi_0026b6675606_76616c6f_infra_psk.

Convert gsupplicant to use term "managed". That way old services work with
the new plugin.

13 years agoSet the network associating state to false when disconnecting
Samuel Ortiz [Mon, 27 Sep 2010 22:00:18 +0000 (00:00 +0200)]
Set the network associating state to false when disconnecting

The gsupplicant based plugin is not setting the network state appropriately
and can trigger an infinite loop between connman_network_set_connected()
and network_disconnect.

13 years agowifi: use connman options to get the wpasupplicant driver
Kalle Valo [Mon, 27 Sep 2010 18:38:55 +0000 (21:38 +0300)]
wifi: use connman options to get the wpasupplicant driver

The new gsupplicant based wifi plugin doesn't support -c command-line
switch to make it possible to choose between wext, nl80211 or both. Add
support for this by using connman_option_get_string().

13 years agoCheck device before call connman_device_set_string at ofono plugin
Martin Xu [Sun, 26 Sep 2010 05:48:37 +0000 (13:48 +0800)]
Check device before call connman_device_set_string at ofono plugin

Fixes BMC#6681

13 years agoudev: Print error when udev support is not available and not disabled
Marcel Holtmann [Sun, 26 Sep 2010 08:36:39 +0000 (17:36 +0900)]
udev: Print error when udev support is not available and not disabled

13 years agoRemove EDNS0 option
Samuel Ortiz [Fri, 24 Sep 2010 22:16:26 +0000 (00:16 +0200)]
Remove EDNS0 option

Many routers block EDNS0 DNS requests and that leads to a non working
DNS resolver for ConnMan. This option can now be removed and have dnsproxy
fallling back to DNS over TCP for big DNS replies.
The optimal solution would be to keep this option and disable it on the fly
for nameserver paths rejecting EDNS0 packets. Unfortunately ConnMan is not
able to detect those paths at the moment and so simply falls back to DNS
over TCP.

13 years agoAdd support for domain name concatenation on TCP DNS requests
Samuel Ortiz [Fri, 24 Sep 2010 21:59:38 +0000 (23:59 +0200)]
Add support for domain name concatenation on TCP DNS requests

13 years agoDefine protocol_offset() for DNS transport layer offset
Samuel Ortiz [Fri, 24 Sep 2010 18:48:33 +0000 (20:48 +0200)]
Define protocol_offset() for DNS transport layer offset

13 years agoDo not access the DNS request buffer if it's NULL
Samuel Ortiz [Fri, 24 Sep 2010 18:42:31 +0000 (20:42 +0200)]
Do not access the DNS request buffer if it's NULL

13 years agoClose TCP DNS connections once the reply is forwarded
Samuel Ortiz [Fri, 24 Sep 2010 18:39:51 +0000 (20:39 +0200)]
Close TCP DNS connections once the reply is forwarded

This is still sub optimal as the ideal solution would be to keep the TCP
connection opened for a 20-30 seconds for the next DNS over TCP requests.

13 years agoStop polling the nameserver TCP socket once we're done with it
Samuel Ortiz [Fri, 24 Sep 2010 18:24:04 +0000 (20:24 +0200)]
Stop polling the nameserver TCP socket once we're done with it

13 years agoSend an error response when the DNS request times out
Samuel Ortiz [Fri, 24 Sep 2010 16:13:35 +0000 (18:13 +0200)]
Send an error response when the DNS request times out

13 years agoAdd a protocol field to the DNS request structure
Samuel Ortiz [Fri, 24 Sep 2010 16:00:48 +0000 (18:00 +0200)]
Add a protocol field to the DNS request structure

This is cleaner than checking for the client socket value.

13 years agoSend SERVFAIL when nameservers are not listening on TCP port 53
Samuel Ortiz [Fri, 24 Sep 2010 15:57:55 +0000 (17:57 +0200)]
Send SERVFAIL when nameservers are not listening on TCP port 53

13 years agoFix DNS TCP buffer parsing copy paste error
Samuel Ortiz [Fri, 24 Sep 2010 15:33:01 +0000 (17:33 +0200)]
Fix DNS TCP buffer parsing copy paste error

13 years agoRemove the DNS TCP listener watch when the socket is closed
Samuel Ortiz [Fri, 24 Sep 2010 15:18:34 +0000 (17:18 +0200)]
Remove the DNS TCP listener watch when the socket is closed

13 years agoFactorize dnsproxy listener creation code
Samuel Ortiz [Fri, 24 Sep 2010 14:40:44 +0000 (16:40 +0200)]
Factorize dnsproxy listener creation code

Lot of the code was shared between between the TCP and UDP code paths.

13 years agoInitial DNS over TCP implementation for dnsproxy
Samuel Ortiz [Fri, 24 Sep 2010 14:09:31 +0000 (16:09 +0200)]
Initial DNS over TCP implementation for dnsproxy

13 years agoFix typo in stats_print_record
Daniel Wagner [Thu, 23 Sep 2010 14:42:00 +0000 (16:42 +0200)]
Fix typo in stats_print_record

13 years agoFix "invalid file header"
Daniel Wagner [Thu, 23 Sep 2010 14:04:36 +0000 (16:04 +0200)]
Fix "invalid file header"

Use stat before open the file to find out if the
file already exists. Only if file exists and
the header is invalid trigger connman_error

13 years agoPut .data files into a separate directory
Daniel Wagner [Thu, 23 Sep 2010 11:25:18 +0000 (13:25 +0200)]
Put .data files into a separate directory

13 years agoSupport multiple interfaces on -i and -I cmdline option.
Lucio Maciel [Wed, 22 Sep 2010 17:54:32 +0000 (14:54 -0300)]
Support multiple interfaces on -i and -I cmdline option.

Support multiple comma-separeted interfaces for -i and -I
command line option. E.g.:
-i eth*,wlan*,ppp* or -I virbr*,usb*,ppp*

13 years agoFix bug to remove vpn services when turning offline mode on
Mohamed Abbas [Wed, 22 Sep 2010 11:35:35 +0000 (04:35 -0700)]
Fix bug to remove vpn services when turning offline mode on

This patch will remove all vpn services on offline mode. It also
make sure it exits after releasing all resources.

Fixes BMC #6591

13 years agoSchedule delayed scan when being disconnected from an AP
Samuel Ortiz [Wed, 22 Sep 2010 14:49:45 +0000 (16:49 +0200)]
Schedule delayed scan when being disconnected from an AP

When being disconnected from an AP, a delayed scan is scheduled to make
sure the AP is still there. wpa_supplicant removes a BSS from its bss list
when it disappears from the scan results twice in a row.

Fixes BCM #6831

13 years agoFix ConnMan crash while disable wifi device
Mohamed Abbas [Wed, 22 Sep 2010 10:25:09 +0000 (12:25 +0200)]
Fix ConnMan crash while disable wifi device

When calling unregister_network() ConnMan sets the network->device pointer
to NULL. That is fine with ESSIDs formed by 1 AP. Otherwise, the eventual
call to __connman_device_decrease_connections() leads to a crash as the
device pointer is NULL.

Fixes BMC #6772

13 years agoAdd statistics ring buffer analyze tool
Daniel Wagner [Wed, 22 Sep 2010 10:11:06 +0000 (12:11 +0200)]
Add statistics ring buffer analyze tool

This tool prints the statistic ring buffer.

13 years agoStore stats information into separate files
Daniel Wagner [Tue, 21 Sep 2010 11:33:42 +0000 (13:33 +0200)]
Store stats information into separate files

Currently the statistic information is stored into the profile file.
This results in rewriting the whole file if connann_stats_save is
called. This results in too many disk I/Os for low power devices.

Furthermore, only the current value is stored. There is no way to
find out how many bytes have been transfered in the last month.

First, each service statistic is stored into a separate files under
/var/lib/connman having a *.data extension. This file contains fixed
sized records of stats counters and will be mmap into memory. It is
used like a ring buffer.

If the buffer is full or after a certain period (e.g. a month), the
raw data will be summerized into the *.info file.
Currently the summary is not implented yet. This will be implemented
in the next round of patches.

13 years agoDon't bother setting 127.0.0.1 as nameserver
Marcel Holtmann [Wed, 22 Sep 2010 04:14:39 +0000 (13:14 +0900)]
Don't bother setting 127.0.0.1 as nameserver

13 years agoRead nameservers from /etc/resolv.conf if none are specified
Marcel Holtmann [Wed, 22 Sep 2010 04:13:37 +0000 (13:13 +0900)]
Read nameservers from /etc/resolv.conf if none are specified

13 years agoAdd support for setting proxy configuration method
Marcel Holtmann [Wed, 22 Sep 2010 03:48:28 +0000 (12:48 +0900)]
Add support for setting proxy configuration method

13 years agoAdd method, domainname and nameserver to proxy configuration
Marcel Holtmann [Wed, 22 Sep 2010 01:46:19 +0000 (10:46 +0900)]
Add method, domainname and nameserver to proxy configuration

13 years agoExport service functions for retrieving domainname and nameserver
Marcel Holtmann [Wed, 22 Sep 2010 00:47:54 +0000 (09:47 +0900)]
Export service functions for retrieving domainname and nameserver

13 years agoFix breakage of make distcheck
Marcel Holtmann [Tue, 21 Sep 2010 23:24:16 +0000 (08:24 +0900)]
Fix breakage of make distcheck

13 years agoCall remove_network() on unsolicited disconnect
Lucio Maciel [Tue, 21 Sep 2010 15:20:40 +0000 (17:20 +0200)]
Call remove_network() on unsolicited disconnect

When receiving an unsolicited disconnect (turn-off the AP)
wpa_supplicant starts scanning every 5 seconds looking for the
previously connected ssid.

This causes the grow of the network list since connman will
not remove the unavailable networks if it is not the initiator of
the scan.

13 years agoRemove RequestPassphrase functionality from Agent API
Patrik Flykt [Tue, 21 Sep 2010 07:07:51 +0000 (10:07 +0300)]
Remove RequestPassphrase functionality from Agent API

Remove the obsolete __connman_agent_request_passphrase function as the
RequestPassphrase method call has been replaced with RequestInput.

13 years agoUse RequestInput method call when requesting passphrases
Patrik Flykt [Tue, 21 Sep 2010 07:07:50 +0000 (10:07 +0300)]
Use RequestInput method call when requesting passphrases

Change password query to use RequestInput method call instead of
RequestPassphrase. The supplied passphrase_cb_t function sets the password
returned via Agent API and tries to reconnect to the service.

13 years agoAgent API RequestInput method for requesting passphrases
Patrik Flykt [Tue, 21 Sep 2010 07:07:49 +0000 (10:07 +0300)]
Agent API RequestInput method for requesting passphrases

request_input_passphrase_reply creates and sends an Agent API RequestInput
method call and waits for the method call return. The function expects a
passhphrase_cb_t to be supplied. Only the "Passphrase" dictionary field is
requested by the method call and only the "Passphrase" dictionary field in
the method call return is used.

13 years agoAdd connman_service_set_passphrase helper function
Patrik Flykt [Tue, 21 Sep 2010 07:07:48 +0000 (10:07 +0300)]
Add connman_service_set_passphrase helper function

Create helper function for setting a service passphrase by factoring out
the code from set_property.

13 years agoUse proper definition for finding device structure
Marcel Holtmann [Tue, 21 Sep 2010 14:43:37 +0000 (23:43 +0900)]
Use proper definition for finding device structure

13 years agoUse __connman_device_get_service_type for getting service type
Marcel Holtmann [Tue, 21 Sep 2010 14:38:53 +0000 (23:38 +0900)]
Use __connman_device_get_service_type for getting service type

13 years agoAdd basic DNS resolving for HTTP operation
Marcel Holtmann [Tue, 21 Sep 2010 14:33:01 +0000 (23:33 +0900)]
Add basic DNS resolving for HTTP operation

13 years agoSimplify linker script
Lucas De Marchi [Tue, 21 Sep 2010 12:47:35 +0000 (09:47 -0300)]
Simplify linker script

Version linker scripts support function names and globs, so there's no
need to rely on nm tool to gather the exported symbols.

13 years agoUse DBUS_CONFDIR variable instead of DBUS_DATADIR
Marcel Holtmann [Tue, 21 Sep 2010 10:11:52 +0000 (19:11 +0900)]
Use DBUS_CONFDIR variable instead of DBUS_DATADIR

13 years agoUse struct connman_stats_data
Daniel Wagner [Mon, 20 Sep 2010 14:45:25 +0000 (16:45 +0200)]
Use struct connman_stats_data

Instead of defining all the counters everwhere use
the connman_stats_data struct. This simplifies the
code later for storing and loading the counters
from the storage backend.

13 years agoHandle several counters simultaniously
Daniel Wagner [Mon, 20 Sep 2010 14:45:24 +0000 (16:45 +0200)]
Handle several counters simultaniously

The current implementation does not handle multiple
counters at the same time correctly. Only the first
counter gets the updates, all others just an empty
dictionary.

For each Counter object the counters have to be
maintained separately.

13 years agoAdd interface string to proxy configuration
Marcel Holtmann [Tue, 21 Sep 2010 04:57:46 +0000 (13:57 +0900)]
Add interface string to proxy configuration

13 years agoBump wifi_legacy plugin's priority
Samuel Ortiz [Mon, 20 Sep 2010 16:23:00 +0000 (18:23 +0200)]
Bump wifi_legacy plugin's priority

The legacy wifi plugin is the default one.

13 years agoDo not register 2 network drivers for the same network type
Samuel Ortiz [Mon, 20 Sep 2010 16:21:51 +0000 (18:21 +0200)]
Do not register 2 network drivers for the same network type

13 years agoImprove GSupplicant debug
Samuel Ortiz [Mon, 20 Sep 2010 14:28:42 +0000 (16:28 +0200)]
Improve GSupplicant debug

13 years agoRemove last ConnMan dependency for GSupplicant
Samuel Ortiz [Mon, 20 Sep 2010 14:07:42 +0000 (16:07 +0200)]
Remove last ConnMan dependency for GSupplicant

This is achieved through the addition of a debug callback.

13 years agoWPA-EAP support for GSupplicant
Samuel Ortiz [Thu, 16 Sep 2010 14:43:27 +0000 (16:43 +0200)]
WPA-EAP support for GSupplicant

13 years agoWEP and WPA-PSK support for GSupplicant
Samuel Ortiz [Thu, 16 Sep 2010 10:34:48 +0000 (12:34 +0200)]
WEP and WPA-PSK support for GSupplicant

13 years agoPrioritize wifi plugins
Samuel Ortiz [Wed, 15 Sep 2010 15:42:06 +0000 (17:42 +0200)]
Prioritize wifi plugins

The legacy one as the default wifi plugin.

13 years agoMove current wifi plugin to legacy
Samuel Ortiz [Wed, 15 Sep 2010 22:21:23 +0000 (00:21 +0200)]
Move current wifi plugin to legacy

The current wifi plugin is replaced by the new API one and is renamed to
wifi-legacy.c.

13 years agoGet device interface through the get_string() routine
Samuel Ortiz [Wed, 15 Sep 2010 13:33:43 +0000 (15:33 +0200)]
Get device interface through the get_string() routine

13 years agoGSupplicant intial commit
Samuel Ortiz [Wed, 15 Sep 2010 21:42:16 +0000 (23:42 +0200)]
GSupplicant intial commit

13 years agoAdd support for PAC runner configuration updates
Marcel Holtmann [Mon, 20 Sep 2010 01:02:47 +0000 (10:02 +0900)]
Add support for PAC runner configuration updates

13 years agoAdd support for retrieving proxy auto configuration URL
Marcel Holtmann [Mon, 20 Sep 2010 00:59:27 +0000 (09:59 +0900)]
Add support for retrieving proxy auto configuration URL

13 years agoIgnore Bluetooth adapter if its address is 00:00:00:00:00:00
Martin Xu [Sun, 19 Sep 2010 08:31:01 +0000 (16:31 +0800)]
Ignore Bluetooth adapter if its address is 00:00:00:00:00:00

13 years agoAdd skeleton for PAC runner support
Marcel Holtmann [Sun, 19 Sep 2010 06:32:15 +0000 (15:32 +0900)]
Add skeleton for PAC runner support

13 years agoUpdate config-format.txt with Name vs SSID explanations
Samuel Ortiz [Thu, 16 Sep 2010 23:16:58 +0000 (01:16 +0200)]
Update config-format.txt with Name vs SSID explanations

13 years agoAdd __connman_service_get_security function
Patrik Flykt [Fri, 17 Sep 2010 10:15:23 +0000 (13:15 +0300)]
Add __connman_service_get_security function

Add helper function to access the security enum attribute of a service.

13 years agoMention Pekka's contributions
Samuel Ortiz [Thu, 16 Sep 2010 10:56:13 +0000 (12:56 +0200)]
Mention Pekka's contributions

13 years agoMention Fabien's contributions
Samuel Ortiz [Thu, 16 Sep 2010 10:55:09 +0000 (12:55 +0200)]
Mention Fabien's contributions

13 years agoFix a crash when doing PEAP/TTLS authentication
Fabien Marotte [Thu, 16 Sep 2010 07:52:43 +0000 (09:52 +0200)]
Fix a crash when doing PEAP/TTLS authentication

When doing a PEAP/TTLS authentication, if the Phase2 passphrase is
not provided, connman crashes due to a NULL pointer.
This patch fixes the crash.

Fixes BMC #6841

13 years agoAdd messages in supplicant plugin
Fabien Marotte [Wed, 15 Sep 2010 09:51:12 +0000 (11:51 +0200)]
Add messages in supplicant plugin

This patch adds error and info messages in case connman detects
missing parameters when doing a TLS or a PEAP/TTLS authentication.

13 years agoAdd verification of the .config file parameters
Fabien Marotte [Wed, 15 Sep 2010 09:51:11 +0000 (11:51 +0200)]
Add verification of the .config file parameters

Connman reads the *.config files in STORAGE_DIR during its boot but
it looks only for parameters it is interrested in.
The configuration parameters syntax is complex and it is very
simple to make a mistake without getting connman warnings. This
leads the user to think that connman understands the configuration
file although it doesn't.

This patch is the code that adds warnings to the logs if connman
reads unknown parameters from the *.config files.

13 years agoMove configuration key strings to be #define
Fabien Marotte [Wed, 15 Sep 2010 09:51:10 +0000 (11:51 +0200)]
Move configuration key strings to be #define

13 years agoelement: remove unnecessary checks
Pekka Pessi [Fri, 10 Sep 2010 12:11:34 +0000 (15:11 +0300)]
element: remove unnecessary checks

Do not check for null pointers after accessing data.

13 years agoSmall style cleanup for readability
Marcel Holtmann [Mon, 13 Sep 2010 22:42:34 +0000 (07:42 +0900)]
Small style cleanup for readability

13 years agoCheck harder for -lresolv
Pekka Pessi [Fri, 10 Sep 2010 12:11:23 +0000 (15:11 +0300)]
Check harder for -lresolv

Older Debians and friends expose __ns_initparse and their resolv.h
defines ns_initparse is __ns_initparse.

13 years agoRemove two pointless whitespaces
Marcel Holtmann [Sat, 11 Sep 2010 10:36:44 +0000 (12:36 +0200)]
Remove two pointless whitespaces

13 years agoHandle potential NULL pointer with DHCP options
Marcel Holtmann [Sat, 11 Sep 2010 10:35:42 +0000 (12:35 +0200)]
Handle potential NULL pointer with DHCP options

13 years agoRelease 0.61 0.61
Marcel Holtmann [Fri, 10 Sep 2010 09:24:11 +0000 (11:24 +0200)]
Release 0.61

13 years agoRemove leftover defines
Marcel Holtmann [Fri, 10 Sep 2010 09:20:37 +0000 (11:20 +0200)]
Remove leftover defines

13 years agoImplement the ModemAdded and ModemRemoved signal handlers
Samuel Ortiz [Thu, 9 Sep 2010 22:57:21 +0000 (00:57 +0200)]
Implement the ModemAdded and ModemRemoved signal handlers

13 years agoFix typo: modem_removed is linked to the MODEM_REMOVED signal
Samuel Ortiz [Thu, 9 Sep 2010 22:56:21 +0000 (00:56 +0200)]
Fix typo: modem_removed is linked to the MODEM_REMOVED signal

13 years agoSupport the new oFono Manager API
Samuel Ortiz [Thu, 9 Sep 2010 22:30:30 +0000 (00:30 +0200)]
Support the new oFono Manager API

GetModems() is called at startup, and ModemAdded and ModemRemoved are
being monitored.

13 years agoFix debug message formatting
Samuel Ortiz [Thu, 9 Sep 2010 18:24:40 +0000 (20:24 +0200)]
Fix debug message formatting

13 years agoFix error message formatting
Samuel Ortiz [Thu, 9 Sep 2010 18:21:36 +0000 (20:21 +0200)]
Fix error message formatting

13 years agoExtend the D-Bus timeout for slow modems
Samuel Ortiz [Thu, 9 Sep 2010 17:46:00 +0000 (19:46 +0200)]
Extend the D-Bus timeout for slow modems

13 years agoPower the ConnectionManager interface up when it shows up
Samuel Ortiz [Thu, 9 Sep 2010 17:45:15 +0000 (19:45 +0200)]
Power the ConnectionManager interface up when it shows up

13 years agoofono: use new oFono GPRS interfaces
Pekka Pessi [Thu, 9 Sep 2010 13:35:58 +0000 (15:35 +0200)]
ofono: use new oFono GPRS interfaces

The plugin keeps now a hash table for networks.

The improved oFono GPRS interface (ConnectionManager) relay the complete
network information in ContextAdded signal and in GetContexts reply.  A
connman_network is immediately created for each Internet context.

The kludge used to create a new context in case the initial context list
was empty is removed.

The oFono context interface (ContextManager) has no essential changes,
it is just removed.

Information from the oFono NetworkRegistration interface is now cached
in the connman_device.  Cached registration information is stored in the
newly created connman_network, too. Later changes in the registration
info get propagated to the connman_network.

TODO:
        - handle ConnectionManager.ContextAdded
        - handle ConnectionManager.ContextRemoved

13 years agoofono: use Modem Online property
Pekka Pessi [Thu, 26 Aug 2010 14:26:50 +0000 (17:26 +0300)]
ofono: use Modem Online property

Modem Online property gets controlled with the cellular device Powered
property.

As the oFono plugin needs to get the Powered state from the device it
gets created when the SIM is ready.

The GPRS networks get added after ConnMan can access the GPRS interface.

As a side effect the oFono modems which do support Online but do not
support GPRS are also visible in ConnMan.

The ConnMan device gets now removed when the SIM is removed or the IMSI
changes.

13 years agodevice: add connman_device_get_ident()
Pekka Pessi [Thu, 26 Aug 2010 14:26:49 +0000 (17:26 +0300)]
device: add connman_device_get_ident()

Expose former core function __connman_device_get_ident().

13 years agoofono: refactor modem_has_gprs()
Pekka Pessi [Thu, 26 Aug 2010 14:26:48 +0000 (17:26 +0300)]
ofono: refactor modem_has_gprs()

13 years agoofono: refactor sim
Pekka Pessi [Thu, 26 Aug 2010 14:26:47 +0000 (17:26 +0300)]
ofono: refactor sim

MCC and MNC are no more propagated to the service.

13 years agoofono: refactor pri_context_changed handler
Pekka Pessi [Thu, 26 Aug 2010 14:26:46 +0000 (17:26 +0300)]
ofono: refactor pri_context_changed handler

Do not use pending_network outside pri_context_changed.

13 years agoofono: fix pending_network_is_available()
Pekka Pessi [Thu, 26 Aug 2010 14:26:45 +0000 (17:26 +0300)]
ofono: fix pending_network_is_available()

connman_network_get_device() returns NULL if network has been removed.

13 years agoofono: don't reuse identifier pending_network
Pekka Pessi [Thu, 26 Aug 2010 14:26:44 +0000 (17:26 +0300)]
ofono: don't reuse identifier pending_network

13 years agoofono: fix add_network()
Pekka Pessi [Thu, 26 Aug 2010 14:26:43 +0000 (17:26 +0300)]
ofono: fix add_network()

Protect against duplication, remove leak.

13 years agoofono: do not strdup in get_ident()
Pekka Pessi [Thu, 26 Aug 2010 14:26:42 +0000 (17:26 +0300)]
ofono: do not strdup in get_ident()

Fix leak if network creation fails.

13 years agoofono: refactor dbus calls
Pekka Pessi [Thu, 26 Aug 2010 14:26:41 +0000 (17:26 +0300)]
ofono: refactor dbus calls

Use call_ofono() wrapper.

13 years agoofono: avoid race between signals and methods
Pekka Pessi [Thu, 26 Aug 2010 14:26:40 +0000 (17:26 +0300)]
ofono: avoid race between signals and methods

Create modem only after Modem.GetProperties succeeds, thus avoiding
races with Modem.PropertyChanged signal. Do not call Modem.GetProperties
again while modem exists.

13 years agoofono: fix stale data usage
Pekka Pessi [Thu, 26 Aug 2010 14:26:39 +0000 (17:26 +0300)]
ofono: fix stale data usage

13 years agoofono: log more of the errors
Pekka Pessi [Thu, 9 Sep 2010 10:13:52 +0000 (12:13 +0200)]
ofono: log more of the errors

13 years agoofono: refactor SetProperty D-Bus calls
Pekka Pessi [Thu, 9 Sep 2010 10:07:23 +0000 (12:07 +0200)]
ofono: refactor SetProperty D-Bus calls

13 years agoRemove the no longer needed security framework
Marcel Holtmann [Thu, 9 Sep 2010 16:53:57 +0000 (18:53 +0200)]
Remove the no longer needed security framework

D-Bus security policies can now be set directly via the method tables.

13 years agoUse D-Bus constants for PolicyKit plugin
Marcel Holtmann [Thu, 9 Sep 2010 16:47:25 +0000 (18:47 +0200)]
Use D-Bus constants for PolicyKit plugin