Samuel Ortiz [Thu, 25 Mar 2010 00:19:23 +0000 (01:19 +0100)]
Indicate new service state according to the location results.
Mohamed Abbas [Wed, 24 Mar 2010 23:34:02 +0000 (00:34 +0100)]
Call location detection after setting DNS and routing tables
Mohamed Abbas [Wed, 24 Mar 2010 23:04:49 +0000 (00:04 +0100)]
Portal detection plugin
Add new plugin to support page redirection when using wifi or ethernet.
Most of this code is a copy from tools/portal-test.com intergrated to
work with location core.
Samuel Ortiz [Wed, 24 Mar 2010 12:04:54 +0000 (13:04 +0100)]
Enable/Disable device when toggling the powered state
When devices are brought up and down externally (e.g. with ifconfig),
connman_device_set_powered() needs to enable or disable them. If it doesnt,
the device associated networks are kept alive and we're still showing them
while the device is actually down.
Kalle Valo [Fri, 19 Mar 2010 13:13:05 +0000 (15:13 +0200)]
Get simple-agent passphrase from command line
Martin Xu [Tue, 23 Mar 2010 09:27:46 +0000 (17:27 +0800)]
Use udev_device_get_devtype before __connman_inet_get_device_type
With some specific 3G cards __connman_inet_get_device_type() fails to
give the correct device type and we end up having both ethernet and 3G
services when pluging those in.
As udev_device_get_devtype() is more reliable, we're now calling it first
and falling back to __connman_inet_get_device_type() when
udev_device_get_devtype() returns a NULL string.
Martin Xu [Tue, 23 Mar 2010 03:43:50 +0000 (11:43 +0800)]
Set network->device as NULL when the device is removed
oFono plugin can use network->device to decide whether the modem is
removed during active PrimaryContext.
That fixes a segmentation fault when removing a 3G modem before getting
the set_network_active() D-Bus reply.
Samuel Ortiz [Mon, 22 Mar 2010 12:10:13 +0000 (13:10 +0100)]
Check for task->path when removing an interface or a network
We need to be more careful about task->path since it could disappear on
us if we want to go offline before we get the add_interface D-Bus reply.
Samuel Ortiz [Mon, 22 Mar 2010 12:06:05 +0000 (13:06 +0100)]
Ignore wext wireless rtnetlink events
The kernel wext core sends wireless events through the rtnetlink channel.
They show up with the ifi_change field set to 0.
The problem with those messages is that their ifi_flags might be
unsynchronized due to the fact that the actual message sending is handled
by a workqueue that doesnt build the message. ifi_flags is set to
dev_flags, but by the time the message is sent dev_flags might have changed.
Connman should just ignore those messages as we don't care about wext
events at all.
Martin Xu [Fri, 19 Mar 2010 06:44:22 +0000 (14:44 +0800)]
Handle the case that MobileNetworkCodeLength is not provided
Don't provide MNC and MCC in this case, but still create the 3G service.
Martin Xu [Fri, 19 Mar 2010 06:44:21 +0000 (14:44 +0800)]
Correct the modem properties key name
Samuel Ortiz [Wed, 17 Mar 2010 19:03:15 +0000 (20:03 +0100)]
Fix convert_wifi_security for psk string
CONNMAN_SERVICE_SECURITY_PSK should map to "psk", not "wep".
Martin Xu [Tue, 9 Mar 2010 05:46:39 +0000 (13:46 +0800)]
Export MCC and MNC for cellular services
Marcel Holtmann [Sun, 7 Mar 2010 23:04:13 +0000 (15:04 -0800)]
Remove internal GAtChat library
Marcel Holtmann [Sun, 7 Mar 2010 23:01:29 +0000 (15:01 -0800)]
Remove unneeded plugin for Ericsson MBM support
Marcel Holtmann [Sun, 7 Mar 2010 22:54:29 +0000 (14:54 -0800)]
Remove unneeded plugin for Option HSO support
Marcel Holtmann [Sun, 7 Mar 2010 22:46:59 +0000 (14:46 -0800)]
Rename Moblin plugin to MeeGo features plugin
Marcel Holtmann [Sun, 7 Mar 2010 22:32:48 +0000 (14:32 -0800)]
Make interface callback tables const
Vinicius Costa Gomes [Mon, 1 Feb 2010 19:16:22 +0000 (16:16 -0300)]
Fix the case when the requested name is already in use
We weren't setting the dbus error in this situation.
Marcel Holtmann [Wed, 3 Mar 2010 15:22:24 +0000 (07:22 -0800)]
Release 0.50
Marcel Holtmann [Wed, 3 Mar 2010 14:44:01 +0000 (06:44 -0800)]
Add config-format.txt to distribution
Samuel Ortiz [Fri, 26 Feb 2010 12:17:29 +0000 (13:17 +0100)]
Document configuration file format
Let's avoid having users digging the code to actually understand that
format.
Martin Xu [Thu, 25 Feb 2010 09:34:35 +0000 (17:34 +0800)]
Remove DHCP method setting from ethernet plugin
The method has been set when creating service.
And setting DHCP method after creating wired service causes the recorded
method gotten from entry file be replaced by DHCP method, consequently,
the static IP of wired service can not be remembered.
Martin Xu [Thu, 25 Feb 2010 06:06:07 +0000 (14:06 +0800)]
Check ipconfig in __connman_ipconfig_clear_address
3G service does not have ipconfig if the Primariy Context is not activated.
So we need to check the ipconfig here.
Lucas De Marchi [Thu, 18 Feb 2010 11:16:59 +0000 (09:16 -0200)]
Add script to set IP configuration method
This script is used to set IPv4.Configuration property of a service,
allowing to change among dhcp and manual methods.
Lucas De Marchi [Thu, 18 Feb 2010 10:58:53 +0000 (08:58 -0200)]
Fix configuration loading for unknown service
In case a service is unknown, the expected behavior is that it uses
dhcp. Currently, method will be left blank and thus connman will not be
able to connect to that service unless method is explicitly set through
IPv4.Configuration property.
Vinicius Costa Gomes [Fri, 12 Feb 2010 20:35:08 +0000 (17:35 -0300)]
Fix: a pending call was leaking in check_service
This was triggering an assert inside libdbus when the timeout inside
the leaking pending call expired. The assert said that we were trying
to remove an nonexistent timeout.
Samuel Ortiz [Tue, 16 Feb 2010 10:52:11 +0000 (11:52 +0100)]
Update all test scripts using devices properties directly
We need to go through the technology list first in order to access the
devices properties.
Gustavo Sverzut Barbieri [Mon, 15 Feb 2010 16:20:30 +0000 (14:20 -0200)]
Update test/list-networks to new properties hierarchy
The "Devices" property is gone, now need to walk "Technologies"
and then their devices.
Marcel Holtmann [Thu, 11 Feb 2010 05:04:21 +0000 (06:04 +0100)]
Release 0.49
Samuel Ortiz [Wed, 10 Feb 2010 19:44:37 +0000 (20:44 +0100)]
Set device powered when bluetooth adapters are powered
When a bluetooth adapters are added, we go through adapter_properties_reply(),
but we dont call connman_device_set_powered() or check_networks() because the
powered variable is false.
We should get the adapter properties upon getting the powered D-Bus reply
message and that will end up calling the right functions.
Samuel Ortiz [Wed, 10 Feb 2010 19:44:36 +0000 (20:44 +0100)]
Bring bluetooth interfaces up at startup
With the current code we're powering up the bluetooth devices through
change_powered, which gets indirectly called from connman_device_register()
through adapter_properties_reply(). Since we're calling
connman_device_register() withouth setting the device path, change_powered
actually does nothing. We have to set the device path before calling
connman_device_register() and then the bluetooth devices will actually be
powered up.
Mohamed Abbas [Thu, 4 Feb 2010 00:16:40 +0000 (16:16 -0800)]
Fix VPN issue when setting up host route
Martin Xu [Tue, 9 Feb 2010 09:29:55 +0000 (10:29 +0100)]
Load and save ipconfig settings
Martin Xu [Tue, 9 Feb 2010 09:29:54 +0000 (10:29 +0100)]
Static IP can be set regardles of the service state
Martin Xu [Tue, 9 Feb 2010 09:29:53 +0000 (10:29 +0100)]
Add static IP support
The IP adress setting is now based on the selected ipconfig method. It is
set after a service reconnection though.
Martin Xu [Tue, 9 Feb 2010 09:29:52 +0000 (10:29 +0100)]
Remove wrong unref of sevice->pending
When setting static ip for ethernet service, unreferencing service->pending
here will cause a segmentation fault.
The reason is that it is done in __connman_service_indicate_state() when
connection succeeds, and service->pending is NULL.
Martin Xu [Tue, 9 Feb 2010 09:29:51 +0000 (10:29 +0100)]
Check for ipaddress local and broadcast pointers
If local is NULL we return an error. If broadcast is NULL, we use the local
address prefix to build a broadcast one.
Martin Xu [Tue, 9 Feb 2010 09:29:50 +0000 (10:29 +0100)]
Add get and create ipconfig from service
In some cases (for example the oFono plugin), we will not get the network
index before creating the service. We then need a routine that allows us to
setup the ipconfig layer once we get the index.
Martin Xu [Tue, 9 Feb 2010 09:29:49 +0000 (10:29 +0100)]
Add some ipconfig helpers
__connman_ipconfig_get_method(): Returns the selected ipconfig method.
__connman_ipconfig_set_address(): Sets the device's IP address according
to the selected method. Only the manual method is supported.
__connman_ipconfig_clear_address(): Clears the device's IP address. Again,
only the manual method is supported for now.
Samuel Ortiz [Fri, 5 Feb 2010 20:07:15 +0000 (21:07 +0100)]
Fix start-scanning script
Devices are no longer part of the manager properties, go through
the technology list instead.
Samuel Ortiz [Fri, 5 Feb 2010 19:14:59 +0000 (20:14 +0100)]
Toggle WiFi device powered field
When receiving an RTNL message for a WiFI NEWLINK, the powered device
field should be toggled accordingly.
Samuel Ortiz [Thu, 4 Feb 2010 18:15:22 +0000 (19:15 +0100)]
Implement move_after() D-Bus service method
Basically the same as move_before(), except for the last g_sequence_move().
Samuel Ortiz [Tue, 2 Feb 2010 15:27:50 +0000 (16:27 +0100)]
Rename mac80211 routines and fields to cfg80211
The mac80211 boolean and inet routines names are a bit misleading since
what we really want to check is if the underlying wifi driver is cfg80211
compliant. The mac80211 drivers form a subset of that, as some full MAC
cards also are fully cfg80211 compliant.
Marcel Holtmann [Mon, 1 Feb 2010 01:34:06 +0000 (17:34 -0800)]
Fix service property monitoring handling
Marcel Holtmann [Mon, 1 Feb 2010 01:29:50 +0000 (17:29 -0800)]
Extract IPv4 and Ethernet values from service monitor script
Marcel Holtmann [Fri, 29 Jan 2010 22:11:26 +0000 (14:11 -0800)]
Add basic support for a location detection framework
Marcel Holtmann [Fri, 29 Jan 2010 16:36:45 +0000 (17:36 +0100)]
Add special state for portal login step
Martin Xu [Thu, 28 Jan 2010 14:38:46 +0000 (22:38 +0800)]
Add network->driver->setup() callback function
After string value has been set in function connman_network_set_string()
call network->driver->setup() to let network driver handle the value.
ofono network driver setup call back function handles "Cellular.APN" to
set up APN.
Marcel Holtmann [Thu, 28 Jan 2010 21:24:04 +0000 (22:24 +0100)]
Use 3 read attempts when in non-blocking mode
Marcel Holtmann [Thu, 28 Jan 2010 21:05:44 +0000 (22:05 +0100)]
Add new constructor for fully blocking operation
Denis Kenzior [Thu, 28 Jan 2010 20:31:22 +0000 (14:31 -0600)]
Fix: Take care of uninitialized variable condition
In some (impossible) circumstances rbytes and err might be used
uninitialized. Here we make a check that a read was actually attempted
before checking those variables.
Marcel Holtmann [Thu, 28 Jan 2010 11:41:31 +0000 (12:41 +0100)]
Limit the number of continues read attempts
Martin Xu [Thu, 28 Jan 2010 03:45:11 +0000 (11:45 +0800)]
Remove system user from dbus config file
Some system such as Moblin, system user does not exist. And the waning
message shows at system starting. In order to remove the wanning message
just remove the system user from dbus config file.
Martin Xu [Thu, 28 Jan 2010 02:44:39 +0000 (10:44 +0800)]
Use operator name as the network name
Marcel Holtmann [Wed, 27 Jan 2010 08:48:21 +0000 (09:48 +0100)]
Remove unneeded use of status variable
Forrest Zhao [Wed, 27 Jan 2010 08:24:23 +0000 (16:24 +0800)]
Introduce g_dbus_setup_private() to gdbus
g_dbus_setup_private() is used to setup private DBusConnection
Marcel Holtmann [Tue, 26 Jan 2010 08:53:22 +0000 (09:53 +0100)]
Use more unique debug descriptor
Marcel Holtmann [Tue, 26 Jan 2010 07:30:31 +0000 (08:30 +0100)]
Handle enabled/disabled cases for technology interface
Marcel Holtmann [Tue, 26 Jan 2010 07:16:47 +0000 (08:16 +0100)]
Add available RFKILL switches to list of technologies
Marcel Holtmann [Mon, 25 Jan 2010 06:49:14 +0000 (07:49 +0100)]
Add support for technology states
Marcel Holtmann [Mon, 25 Jan 2010 06:20:29 +0000 (07:20 +0100)]
Use the technology type for an unqiue object path
Marcel Holtmann [Mon, 25 Jan 2010 06:17:33 +0000 (07:17 +0100)]
Use proper base path prefix for device objects
Marcel Holtmann [Mon, 25 Jan 2010 06:14:11 +0000 (07:14 +0100)]
Add support for technology interface
Marcel Holtmann [Sat, 23 Jan 2010 10:20:00 +0000 (11:20 +0100)]
Sync GAtChat library with oFono
Martin Xu [Fri, 22 Jan 2010 05:30:47 +0000 (13:30 +0800)]
Set APN before connecting via oFono plugin
Martin Xu [Fri, 22 Jan 2010 05:30:46 +0000 (13:30 +0800)]
Add default context if no context exists
Marcel Holtmann [Sat, 23 Jan 2010 09:41:48 +0000 (10:41 +0100)]
Ignore resolvers with no interface for resolvconf
Mohamed Abbas [Tue, 19 Jan 2010 22:24:42 +0000 (14:24 -0800)]
Update test program for redirection checks.
Parse the HTTP response header for redirection. This patch
also checks for proxy setting.
Lucas De Marchi [Tue, 19 Jan 2010 18:05:17 +0000 (16:05 -0200)]
Fix PropertyChanged for disconnect event
When connman_network_set_connected() is called with 'connected=FALSE',
network->connected is already FALSE, causing signal not being sent.
So, in __connman_network_disconnet() instead of directly assigning
network->connected to FALSE, call connman_network_set_connected()
which will deal with properly setting it and sending the signal.
Marcel Holtmann [Tue, 19 Jan 2010 05:01:44 +0000 (21:01 -0800)]
Some minor style fixing for the previous commit
Martin Xu [Tue, 19 Jan 2010 04:34:48 +0000 (12:34 +0800)]
Process RFKILL events after opening device
To avoid the case when RFKILL event happens in the device enable stage,
process the initial events after opening the device. The /dev/rfkill
sends out the current RFKIL states after open(). This fixes a race
condition between device enabling and initial RFKILL states.
Martin Xu [Mon, 18 Jan 2010 07:27:17 +0000 (15:27 +0800)]
Check RFKILL block state before enable the device
When starting, the device RFKILL block state will be recorded using
update_rfkill_state(). And at following device detection stage,
before enable the device, __connman_udev_get_blocked() should be
used to check the block state. If the device is blocked, it should
not be enabled. This avoids unnecessary enable and disable operation
and a race condition.
Denis Kenzior [Fri, 15 Jan 2010 16:24:01 +0000 (10:24 -0600)]
Fix: One more fix for disconnect detection
In situations where lots of data is generated by the remote side (e.g.
phonebook is being read) we can get our ring buffer filled up. In this
case setting rbytes to zero first and then breaking out of the loop
leads to an erroneous disconnect detection. The fix is to move setting
of rbytes after we know we still have some space.
Denis Kenzior [Thu, 14 Jan 2010 16:25:14 +0000 (10:25 -0600)]
Fix: Make remote disconnect detection work
Marcel Holtmann [Wed, 13 Jan 2010 21:01:48 +0000 (13:01 -0800)]
Fix minor style issue
Marcel Holtmann [Wed, 13 Jan 2010 10:52:10 +0000 (02:52 -0800)]
Add special "online" service state
Samuel Ortiz [Wed, 13 Jan 2010 10:32:40 +0000 (11:32 +0100)]
Set the connecting flag to FALSE upon connection failure
When the connection really fails, connecting should be set back to FALSE.
Samuel Ortiz [Wed, 13 Jan 2010 10:30:36 +0000 (11:30 +0100)]
Do not call __connman_service_put() twice
When a connection fails and service->network is not NULL, we end up calling
__connman_service_put() twice, since __connman_device_cleanup_networks()
calls it too . __connman_device_cleanup_networks() eventually calls
network_remove() from the element removal code, and that ends up calling
__connman_service_put().
Marcel Holtmann [Tue, 12 Jan 2010 09:20:23 +0000 (01:20 -0800)]
Add more details and examples for agent API
Luiz Augusto Von Dentz [Fri, 8 Jan 2010 10:17:19 +0000 (12:17 +0200)]
Fix regression when removing watches
filter_data_find return the first data registered in this case so there is
no guarantee that it return the same data as passed to
filter_data_remove_callback which is the one that should be removed.
The fix is to simple cache the connection removing the correct data before
checking if there is any filter left.
Marcel Holtmann [Fri, 8 Jan 2010 02:08:00 +0000 (18:08 -0800)]
Fix some WPA Enterprise privacy issues
Marcel Holtmann [Fri, 8 Jan 2010 02:06:52 +0000 (18:06 -0800)]
Add debug information for proxy auto configuration URL
Marcel Holtmann [Thu, 7 Jan 2010 19:42:40 +0000 (11:42 -0800)]
Add support for setting immutable flag from configurations
Marcel Holtmann [Thu, 7 Jan 2010 11:48:05 +0000 (03:48 -0800)]
Add counter API document
Marcel Holtmann [Thu, 7 Jan 2010 10:07:12 +0000 (02:07 -0800)]
Add configuration file option for private key passphrase type
Marcel Holtmann [Thu, 7 Jan 2010 08:07:40 +0000 (00:07 -0800)]
Add support for multiple services per configuration file
Marcel Holtmann [Wed, 6 Jan 2010 09:35:48 +0000 (01:35 -0800)]
Add first draft of a portal test application
Marcel Holtmann [Wed, 6 Jan 2010 09:20:53 +0000 (01:20 -0800)]
Add support for handling BSS changed signals
Marcel Holtmann [Tue, 5 Jan 2010 23:53:33 +0000 (15:53 -0800)]
Allow counters with zero interval
Marcel Holtmann [Tue, 5 Jan 2010 15:32:56 +0000 (07:32 -0800)]
Fix typo with RX versus TX stats
Marcel Holtmann [Tue, 5 Jan 2010 15:31:39 +0000 (07:31 -0800)]
Usage statistics structure directly
Marcel Holtmann [Tue, 5 Jan 2010 15:29:49 +0000 (07:29 -0800)]
Include interface name in statistics usage
Marcel Holtmann [Tue, 5 Jan 2010 15:13:34 +0000 (07:13 -0800)]
Check interval parameters and request first update
Marcel Holtmann [Tue, 5 Jan 2010 15:07:44 +0000 (07:07 -0800)]
Only send updates if byte count actually changed
Marcel Holtmann [Tue, 5 Jan 2010 14:59:20 +0000 (06:59 -0800)]
Add support for exporting basic interface statistics
Marcel Holtmann [Tue, 5 Jan 2010 13:52:03 +0000 (05:52 -0800)]
Use common set of INET routing helpers
Marcel Holtmann [Tue, 5 Jan 2010 13:35:55 +0000 (05:35 -0800)]
Add helper for removing host routes
Marcel Holtmann [Tue, 5 Jan 2010 13:29:32 +0000 (05:29 -0800)]
Split gateway and host route setting in two separate functions
Marcel Holtmann [Tue, 5 Jan 2010 13:17:16 +0000 (05:17 -0800)]
Fix invalid argument terminator