Martin Xu [Wed, 30 Dec 2009 08:24:08 +0000 (16:24 +0800)]
Add function connman_network_set_method()
Martin Xu [Wed, 30 Dec 2009 08:24:07 +0000 (16:24 +0800)]
Don't reset associating from function connman_network_set_error()
Luiz Augusto Von Dentz [Tue, 29 Dec 2009 12:10:15 +0000 (14:10 +0200)]
Fix undefined symbols
Marcel Holtmann [Tue, 29 Dec 2009 23:47:41 +0000 (15:47 -0800)]
Decode mode and auth capabilities in supplicant test program
Marcel Holtmann [Tue, 29 Dec 2009 22:42:05 +0000 (14:42 -0800)]
Use better network identifier in supplicant test program
Marcel Holtmann [Tue, 29 Dec 2009 22:15:51 +0000 (14:15 -0800)]
Fix length checks for WPA and RSN IEs
Marcel Holtmann [Tue, 29 Dec 2009 21:31:50 +0000 (13:31 -0800)]
Handle supplicant restarts in test program
Marcel Holtmann [Tue, 29 Dec 2009 12:07:06 +0000 (04:07 -0800)]
Add interface and network handling to supplicant test program
Luiz Augusto Von Dentz [Tue, 29 Dec 2009 09:16:23 +0000 (11:16 +0200)]
Port gdbus to use g_dbus_add_signal_watch
Luiz Augusto Von Dentz [Tue, 29 Dec 2009 08:53:21 +0000 (10:53 +0200)]
Add initial implementation of g_dbus_add_signal_watch
With g_dbus_add_signal_watch there is no need to register multiple filters
for dbus nor add matching rules manually.
Marcel Holtmann [Fri, 25 Dec 2009 11:44:07 +0000 (03:44 -0800)]
Add signal handling to supplicant test program
Marcel Holtmann [Fri, 25 Dec 2009 10:54:53 +0000 (02:54 -0800)]
Add extra NULL pointer check for service configuration
Marcel Holtmann [Fri, 25 Dec 2009 10:47:12 +0000 (02:47 -0800)]
Some cleanup with the provision handling
Marcel Holtmann [Fri, 25 Dec 2009 10:35:01 +0000 (02:35 -0800)]
Fix broken error handling with D-Bus filter
Marcel Holtmann [Thu, 24 Dec 2009 15:11:44 +0000 (07:11 -0800)]
Use failed as label name instead of error
Marcel Holtmann [Thu, 24 Dec 2009 15:06:23 +0000 (07:06 -0800)]
Unifiy all GAtChat error labels
Marcel Holtmann [Thu, 24 Dec 2009 15:05:53 +0000 (07:05 -0800)]
Fix permissions of newly created /etc/resolv.conf
Marcel Holtmann [Thu, 24 Dec 2009 14:56:19 +0000 (06:56 -0800)]
Set Ethernet connected after assigning the network group
Samuel Ortiz [Wed, 23 Dec 2009 23:55:32 +0000 (00:55 +0100)]
More config.c copy and paste fixes
In __connman_config_provision_service(), the config pointer was always set
to the last service entry found from the configuration files. This was
hiding many bugs introduced by the hexadecimal SSID changes.
Marcel Holtmann [Wed, 23 Dec 2009 22:53:11 +0000 (14:53 -0800)]
Fix copy-and-paste issue with SSID configuration field
Marcel Holtmann [Wed, 23 Dec 2009 22:52:38 +0000 (14:52 -0800)]
Some more whitespace cleanups
Samuel Ortiz [Wed, 23 Dec 2009 22:19:35 +0000 (23:19 +0100)]
Add support for building passphrase from the private key fsid
The private key can be build so that the passphrase is the key's filesystem
ID, i.e. stat --file-system --printf="%i" <private_key_path>.
By setting the PassphraseFromFsid config entry to true, such a filesystem
ID will be used as private key passphrase and passed to the supplicant.
Samuel Ortiz [Wed, 23 Dec 2009 22:17:40 +0000 (23:17 +0100)]
Enable connecting to an IEEE 802.1x network from the service API
If security is "ieee8021x", allow the service API to try a connection,
and update the attached network with the right IEEE 802.1x settings.
Also, a passphrase is required when connecting to such network.
Samuel Ortiz [Wed, 23 Dec 2009 22:16:41 +0000 (23:16 +0100)]
Load service entries from configuration files
For IEEE 802.1x networks, the various certificate paths, private key
paths and identities are configured through an external configuration
file. They belong to a "service" group in this file and loaded at
startup.
Any matching service with the corresponding service group will be
provisioned with this configuration. These settings will also be
then propagated to the network structure at connection time.
Marcel Holtmann [Wed, 23 Dec 2009 13:33:31 +0000 (05:33 -0800)]
Fix include of documentation file
Marcel Holtmann [Wed, 23 Dec 2009 13:31:21 +0000 (05:31 -0800)]
Add code for retrieving supplicant global properties
Samuel Ortiz [Wed, 23 Dec 2009 12:57:45 +0000 (13:57 +0100)]
Convert the network EAP string to uppercase
wpa_supplicant only understands upper case string for the EAP definitions.
Marcel Holtmann [Wed, 23 Dec 2009 11:39:00 +0000 (03:39 -0800)]
Add basic mainloop and D-Bus setup to supplicant test tool
Marcel Holtmann [Wed, 23 Dec 2009 11:16:03 +0000 (03:16 -0800)]
Fix mis-merged AM_CFLAGS line
Marcel Holtmann [Wed, 23 Dec 2009 11:15:10 +0000 (03:15 -0800)]
Add skeleton for supplicant test tool
Samuel Ortiz [Tue, 22 Dec 2009 20:26:56 +0000 (21:26 +0100)]
Pass required IEEE 802.1x settings to wpa_supplicant
When trying to connect to a 802.1x service, the attached network is
updated with the 802.1x settings from the config entries, if any. Then
we fetch those settings and send the relevant ones to wpa_supplicant.
Please note that only TLS and PEAP are supported at the moment. Those
two authentication methods account for most of the 802.1x WiFi networks.
Marcel Holtmann [Tue, 22 Dec 2009 08:29:05 +0000 (00:29 -0800)]
Fix service loading and add provision callbacks
Samuel Ortiz [Mon, 21 Dec 2009 20:45:37 +0000 (21:45 +0100)]
Add IEEE 802.1x related fields to network structure
In order to support IEEE 802.1x serveral additional fields needs to
be stored. In addition the network's EAP is displayed when listing
the network's properties.
Marcel Holtmann [Mon, 21 Dec 2009 06:39:02 +0000 (22:39 -0800)]
Add initial documentation for advanced configuration
Marcel Holtmann [Mon, 21 Dec 2009 05:39:36 +0000 (21:39 -0800)]
Enable notification for IP configuration changes
Marcel Holtmann [Mon, 21 Dec 2009 03:11:20 +0000 (19:11 -0800)]
Add IP configured method for fixed addresses
Marcel Holtmann [Sun, 20 Dec 2009 21:33:32 +0000 (13:33 -0800)]
Decode the immutable property correctly
Marcel Holtmann [Sun, 20 Dec 2009 21:32:05 +0000 (13:32 -0800)]
Add basic support for immutable services
Marcel Holtmann [Sun, 20 Dec 2009 20:46:50 +0000 (12:46 -0800)]
Add D-Bus interface for configuring IP addresses
Marcel Holtmann [Sun, 20 Dec 2009 19:59:05 +0000 (11:59 -0800)]
Remove unused code snippet
Marcel Holtmann [Sun, 20 Dec 2009 18:55:04 +0000 (10:55 -0800)]
Rename IP configuration methods to match specification
Marcel Holtmann [Sun, 20 Dec 2009 18:49:45 +0000 (10:49 -0800)]
Fix Ethernet address string representation
Marcel Holtmann [Sun, 20 Dec 2009 18:39:53 +0000 (10:39 -0800)]
Fix netmask from prefix length string conversion
Marcel Holtmann [Sun, 20 Dec 2009 18:29:14 +0000 (10:29 -0800)]
Add tracking of system IP address settings
Marcel Holtmann [Sun, 20 Dec 2009 18:08:43 +0000 (10:08 -0800)]
Fix update of Ethernet address and MTU values
Marcel Holtmann [Sun, 20 Dec 2009 07:55:13 +0000 (23:55 -0800)]
Fix debugging output of link address
Marcel Holtmann [Sun, 20 Dec 2009 07:37:58 +0000 (23:37 -0800)]
Fix test script for listing service properties
Marcel Holtmann [Sun, 20 Dec 2009 07:30:10 +0000 (23:30 -0800)]
Remove invalid IPv4 configuration handling
Marcel Holtmann [Sun, 20 Dec 2009 07:27:08 +0000 (23:27 -0800)]
Fix wrong extraction of link address
Marcel Holtmann [Sun, 20 Dec 2009 07:00:52 +0000 (23:00 -0800)]
Track link address and MTU settings
Marcel Holtmann [Sun, 20 Dec 2009 06:11:32 +0000 (22:11 -0800)]
Add support for more advanced service property listing
Marcel Holtmann [Sun, 20 Dec 2009 05:49:36 +0000 (21:49 -0800)]
Add property for Ethernet configuration settings
Marcel Holtmann [Sun, 20 Dec 2009 05:39:02 +0000 (21:39 -0800)]
Update handling of IPv4 configuration settings
Marcel Holtmann [Sun, 20 Dec 2009 05:30:41 +0000 (21:30 -0800)]
Update service details for IPv4 and Ethernet information
Marcel Holtmann [Sun, 20 Dec 2009 03:41:03 +0000 (19:41 -0800)]
Remove deprecated debugging test script
Marcel Holtmann [Sun, 20 Dec 2009 02:50:18 +0000 (18:50 -0800)]
Remove deprecated test script for connection interface
Marcel Holtmann [Sat, 19 Dec 2009 23:15:41 +0000 (15:15 -0800)]
Rename D-Bus helper function for variable arrays
Marcel Holtmann [Sat, 19 Dec 2009 23:12:10 +0000 (15:12 -0800)]
Make use of property changed helper for arrays
Marcel Holtmann [Sat, 19 Dec 2009 23:01:32 +0000 (15:01 -0800)]
Add D-Bus helper for array property changed signals
Marcel Holtmann [Sat, 19 Dec 2009 22:51:10 +0000 (14:51 -0800)]
Use D-Bus property helpers for network list details
Marcel Holtmann [Sat, 19 Dec 2009 22:09:28 +0000 (14:09 -0800)]
Add address and netmask configuration to settings
Marcel Holtmann [Sat, 19 Dec 2009 22:08:12 +0000 (14:08 -0800)]
Append settings only for ready services
Marcel Holtmann [Sat, 19 Dec 2009 21:35:58 +0000 (13:35 -0800)]
Include current configuration into settings
Marcel Holtmann [Sat, 19 Dec 2009 21:33:00 +0000 (13:33 -0800)]
Add user data parameter to dictionary helpers
Marcel Holtmann [Sat, 19 Dec 2009 21:23:15 +0000 (13:23 -0800)]
Add user data argument to D-Bus array property helpers
Marcel Holtmann [Sat, 19 Dec 2009 21:17:42 +0000 (13:17 -0800)]
Rename D-Bus helper for basic dictionary types
Marcel Holtmann [Sat, 19 Dec 2009 21:13:47 +0000 (13:13 -0800)]
Rename D-Bus helper for basic property types
Marcel Holtmann [Sat, 19 Dec 2009 21:11:20 +0000 (13:11 -0800)]
Add user data to D-Bus helper function callbacks
Marcel Holtmann [Sat, 19 Dec 2009 21:03:59 +0000 (13:03 -0800)]
Add property for service settings
Marcel Holtmann [Sat, 19 Dec 2009 21:03:19 +0000 (13:03 -0800)]
Add helpers for adding dictionaries as property
Marcel Holtmann [Sat, 19 Dec 2009 20:38:03 +0000 (12:38 -0800)]
Use helper for basic property changed signals
Marcel Holtmann [Sat, 19 Dec 2009 20:19:08 +0000 (12:19 -0800)]
Add helper for sending PropertyChanged signal
Marcel Holtmann [Sat, 19 Dec 2009 20:12:49 +0000 (12:12 -0800)]
Use inline functions for dictionary helpers
Marcel Holtmann [Sat, 19 Dec 2009 20:10:17 +0000 (12:10 -0800)]
Create another helper for fixed array properties
Marcel Holtmann [Sat, 19 Dec 2009 09:27:29 +0000 (01:27 -0800)]
Ignore WiFi networks with IBSS (adhoc mode)
Marcel Holtmann [Sat, 19 Dec 2009 09:21:40 +0000 (01:21 -0800)]
Fix typo with exported device list
Marcel Holtmann [Sat, 19 Dec 2009 09:20:06 +0000 (01:20 -0800)]
Remove unused D-Bus interface name constant
Marcel Holtmann [Sat, 19 Dec 2009 09:19:13 +0000 (01:19 -0800)]
Use new D-Bus helpers wherever possible
Marcel Holtmann [Sat, 19 Dec 2009 08:44:22 +0000 (00:44 -0800)]
Add another D-Bus helper for properties with arrays
Marcel Holtmann [Sat, 19 Dec 2009 08:32:38 +0000 (00:32 -0800)]
Add helper function to retrieve list of devices
Marcel Holtmann [Sat, 19 Dec 2009 08:24:47 +0000 (00:24 -0800)]
Add helpers for appending flexible D-Bus arrays
Marcel Holtmann [Sat, 19 Dec 2009 08:18:04 +0000 (00:18 -0800)]
Use D-Bus helpers for more readability
Marcel Holtmann [Sat, 19 Dec 2009 08:08:47 +0000 (00:08 -0800)]
Make use of D-Bus dictionary helpers
Marcel Holtmann [Sat, 19 Dec 2009 07:54:22 +0000 (23:54 -0800)]
Create helpers for dictionary containers
Marcel Holtmann [Sat, 19 Dec 2009 05:28:54 +0000 (21:28 -0800)]
Store flag for public DNS servers
Marcel Holtmann [Sat, 19 Dec 2009 05:21:08 +0000 (21:21 -0800)]
Ignore DNS servers without an interface for now
Marcel Holtmann [Sat, 19 Dec 2009 04:54:01 +0000 (20:54 -0800)]
Add test script for new supplicant interface
Marcel Holtmann [Sat, 19 Dec 2009 04:26:01 +0000 (20:26 -0800)]
Fix signal strength calculation when quality is not provided
Marcel Holtmann [Sat, 19 Dec 2009 04:22:50 +0000 (20:22 -0800)]
Add more debug output for WiFi quality
Marcel Holtmann [Sat, 19 Dec 2009 03:45:34 +0000 (19:45 -0800)]
Mention "wpa" and "rsn" as alternates for "psk" security value
Marcel Holtmann [Sat, 19 Dec 2009 03:41:29 +0000 (19:41 -0800)]
Allow potential roaming between WPA and WPA2 networks
Samuel Ortiz [Sat, 19 Dec 2009 00:42:29 +0000 (01:42 +0100)]
Ask for DEVICE_TYPE_WIFI when looking for a WiFi device
The __connman_element_find_device(CONNMAN_SERVICE_TYPE_WIFI) was working
fine while SERVICE_TYPE_WIFI and DEVICE_TYPE_WIFI were equal. With the
introduction of CONNMAN_SERVICE_TYPE_SYSTEM, this last assertion is no
longer true, breaking the service API for connection.
Marcel Holtmann [Thu, 17 Dec 2009 21:14:00 +0000 (13:14 -0800)]
Remove some pointless break statements in test script
Denis Robert [Thu, 17 Dec 2009 17:04:57 +0000 (18:04 +0100)]
Add command to test script for settting scan interval
This allows to put scan interval to zero and disable background scanning.
Martin Xu [Thu, 17 Dec 2009 13:52:26 +0000 (21:52 +0800)]
Add static IP support for oFono interaction
Martin Xu [Thu, 17 Dec 2009 13:52:25 +0000 (21:52 +0800)]
Handle static method at function set_connected
Martin Xu [Thu, 17 Dec 2009 13:52:24 +0000 (21:52 +0800)]
Clear associating and connecting state at connman_network_set_error
Martin Xu [Thu, 17 Dec 2009 13:52:23 +0000 (21:52 +0800)]
Add function connman_network_get_element
Daniel Orstadius [Wed, 16 Dec 2009 09:23:46 +0000 (11:23 +0200)]
Fix D-Bus timeout handling
Timeouts should also be removed in the remove_timeout callback in
addition to the timeout_handler_free function. This is how dbus-glib
does it and it seems to prevent crashes in certain situations.
Marcel Holtmann [Tue, 15 Dec 2009 20:42:16 +0000 (12:42 -0800)]
Remove faulty removal of IP address from interface