summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-02-11Release 0.490.49Marcel Holtmann2-1/+10
2010-02-11Set device powered when bluetooth adapters are poweredSamuel Ortiz1-95/+98
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.
2010-02-11Bring bluetooth interfaces up at startupSamuel Ortiz1-0/+2
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.
2010-02-11Fix VPN issue when setting up host routeMohamed Abbas3-2/+55
2010-02-11Load and save ipconfig settingsMartin Xu1-0/+60
2010-02-11Static IP can be set regardles of the service stateMartin Xu1-3/+0
2010-02-11Add static IP supportMartin Xu5-5/+71
The IP adress setting is now based on the selected ipconfig method. It is set after a service reconnection though.
2010-02-11Remove wrong unref of sevice->pendingMartin Xu1-3/+0
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.
2010-02-11Check for ipaddress local and broadcast pointersMartin Xu1-1/+12
If local is NULL we return an error. If broadcast is NULL, we use the local address prefix to build a broadcast one.
2010-02-11Add get and create ipconfig from serviceMartin Xu2-0/+22
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.
2010-02-11Add some ipconfig helpersMartin Xu2-0/+49
__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.
2010-02-05Fix start-scanning scriptSamuel Ortiz1-6/+11
Devices are no longer part of the manager properties, go through the technology list instead.
2010-02-05Toggle WiFi device powered fieldSamuel Ortiz1-1/+2
When receiving an RTNL message for a WiFI NEWLINK, the powered device field should be toggled accordingly.
2010-02-04Implement move_after() D-Bus service methodSamuel Ortiz1-28/+11
Basically the same as move_before(), except for the last g_sequence_move().
2010-02-02Rename mac80211 routines and fields to cfg80211Samuel Ortiz3-6/+6
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.
2010-01-31Fix service property monitoring handlingMarcel Holtmann1-10/+7
2010-01-31Extract IPv4 and Ethernet values from service monitor scriptMarcel Holtmann1-0/+10
2010-01-29Add basic support for a location detection frameworkMarcel Holtmann6-2/+377
2010-01-29Add special state for portal login stepMarcel Holtmann4-12/+26
2010-01-29Add network->driver->setup() callback functionMartin Xu3-3/+25
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.
2010-01-28Use 3 read attempts when in non-blocking modeMarcel Holtmann1-1/+1
2010-01-28Add new constructor for fully blocking operationMarcel Holtmann4-7/+31
2010-01-28Fix: Take care of uninitialized variable conditionDenis Kenzior1-4/+2
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.
2010-01-28Limit the number of continues read attemptsMarcel Holtmann1-2/+11
2010-01-28Remove system user from dbus config fileMartin Xu1-3/+0
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.
2010-01-28Use operator name as the network nameMartin Xu1-17/+101
2010-01-27Remove unneeded use of status variableMarcel Holtmann1-8/+2
2010-01-27Introduce g_dbus_setup_private() to gdbusForrest Zhao2-13/+55
g_dbus_setup_private() is used to setup private DBusConnection
2010-01-26Use more unique debug descriptorMarcel Holtmann1-2/+2
2010-01-26Handle enabled/disabled cases for technology interfaceMarcel Holtmann3-26/+58
2010-01-26Add available RFKILL switches to list of technologiesMarcel Holtmann3-7/+138
2010-01-25Add support for technology statesMarcel Holtmann2-3/+63
2010-01-25Use the technology type for an unqiue object pathMarcel Holtmann1-3/+7
2010-01-25Use proper base path prefix for device objectsMarcel Holtmann1-1/+1
2010-01-25Add support for technology interfaceMarcel Holtmann12-36/+349
2010-01-23Sync GAtChat library with oFonoMarcel Holtmann6-95/+214
2010-01-23Set APN before connecting via oFono pluginMartin Xu2-1/+67
2010-01-23Add default context if no context existsMartin Xu1-0/+78
2010-01-23Ignore resolvers with no interface for resolvconfMarcel Holtmann1-0/+6
2010-01-20Update test program for redirection checks.Mohamed Abbas1-36/+99
Parse the HTTP response header for redirection. This patch also checks for proxy setting.
2010-01-19Fix PropertyChanged for disconnect eventLucas De Marchi1-1/+1
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.
2010-01-18Some minor style fixing for the previous commitMarcel Holtmann1-6/+2
2010-01-18Process RFKILL events after opening deviceMartin Xu1-14/+35
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.
2010-01-18Check RFKILL block state before enable the deviceMartin Xu4-0/+69
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.
2010-01-15Fix: One more fix for disconnect detectionDenis Kenzior1-2/+1
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.
2010-01-14Fix: Make remote disconnect detection workDenis Kenzior1-1/+1
2010-01-13Fix minor style issueMarcel Holtmann1-1/+1
2010-01-13Add special "online" service stateMarcel Holtmann3-1/+14
2010-01-13Set the connecting flag to FALSE upon connection failureSamuel Ortiz1-1/+3
When the connection really fails, connecting should be set back to FALSE.
2010-01-13Do not call __connman_service_put() twiceSamuel Ortiz1-3/+2
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().