summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-16Mention Daniel's contributionsMarcel Holtmann1-0/+1
2010-04-16Remove supplicant and device scanning state cleaningSamuel Ortiz3-24/+0
With wpa_supplicant 0.7, there is no need to handle potential issues with scan results not being sent. Also, the state change is sent before the actual scan results, so marking all networks available at that point is misleading.
2010-04-14ofono API refactoring: Rename netreg Operator property to NameDaniel Wagner1-1/+6
for ofono version >0.20
2010-04-14Remove the access of status property of DataConnectionManager from oFonoMartin Xu1-12/+0
The status property has been removed from oFono post oFono 0.20
2010-04-13Release 0.520.52Marcel Holtmann2-1/+9
2010-04-13Fix session code identationSamuel Ortiz1-1/+1
2010-04-13Fix session API documentationSamuel Ortiz1-1/+4
We return an object path, not a simple string.
2010-04-13Remove erroneous DHCP method setting from bluetooth pluginMartin Xu1-2/+0
The ipconfig method is set by connman_network_set_index(), DHCP being the default one.
2010-04-13Load ipconfig setting from __connman_service_create_ipconfig()Martin Xu1-0/+14
When creating a service without an ipconfig, the ipconfig settings are not loaded. This issue is fixed by calling __connman_ipconfig_load() indirectly from connman_network_set_index().
2010-04-13Reset ipconfig indexMartin Xu1-5/+17
With PAN, the bnep device index might change and thus it needs to be set appropriately whenever connman_network_set_index() gets called.
2010-04-13Add __connman_ipconfig_set_index() helperMartin Xu2-0/+6
2010-04-09Reference PAN network before disconnectingMartin Xu1-0/+4
The PAN network can be destructed before getting the disconnect reply. In that case disconnect_reply() will segfault by calling connman_network_set_connected() with a NULL network pointer. This issue is fixed by referencing the PAN network from pan_disconnect().
2010-04-09Reset connman_network device pointer when it is no longer referencedSamuel Ortiz2-2/+5
When removing all networks from a device, network->device pointers are set to NULL even though the network is still referenced. This can lead to segmentation faults when for example a service has several networks and is being disconnected.
2010-04-06Do not set network index from PAN disconnect replySamuel Ortiz1-7/+0
There is no need to track the network's connected state through its index. As a matter of fact, setting the network index to -1 on the PAN disconnect path can triggers segmentation faults when powering the device off at the same time.
2010-04-03Add session D-Bus manager APISamuel Ortiz2-0/+57
2010-04-03Add session supportSamuel Ortiz4-1/+307
The session layer allows 3rd party applications to request a network session from connman. The only thing applications need to specify is the type of network they're looking for, a.k.a. the network bearer. An unspecified bearer means picking the best available service.
2010-04-03Connect service based on service typeSamuel Ortiz2-0/+59
__connman_service_connect_type() tries to find the appropriate service based on the service_type argument, and connect it. If the argument is CONNMAN_SERVICE_TYPE_UNKNOWN, the first available service is picked.
2010-04-02ONLINE and LOGIN are also "connected" states.Gustavo Sverzut Barbieri1-62/+50
Code was initially done with CONNMAN_SERVICE_STATE_READY being the only valid connected state, but later on CONNMAN_SERVICE_STATE_LOGIN and CONNMAN_SERVICE_STATE_ONLINE were introduced, breaking couple of functions that assumed the old behavior. This patch creates the is_connected() function, similar to is_connecting() and uses it instead. __connman_service_indicate_state() checks just for ONLINE, as requested by Marcel.
2010-04-01Add hh2serial GPS supportMohamed Abbas4-0/+133
This patch brings the hh2serial GPS device on and off with offline mode changes. Although this power control is currently done through sysfs entries, this will be fixed once the hh2serial driver gets proper rfkill support.
2010-03-26Use psk for building hidden WPA SSID groupSamuel Ortiz1-2/+9
When building a hidden SSID group for a WPA/WPA2 network, use psk as the security string. With rsn or wpa strings, 2 services for the same SSID will show up once the SSID appears in any scan result.
2010-03-25Release 0.510.51Marcel Holtmann2-1/+9
2010-03-25Reset location->result when disconnecting.Samuel Ortiz1-0/+2
If result is not reset, the service state is no longer indicated after a connect/disconnect cycle.
2010-03-25Set netmask and gateway as the mandatory parameters of test/set-addressMartin Xu1-9/+5
2010-03-25Add static gateway supportMartin Xu4-55/+78
2010-03-25Add gateway to connman_ipaddressMartin Xu2-7/+35
2010-03-24Enable portal plugin for developers by defaultMarcel Holtmann1-0/+1
2010-03-25Indicate new service state according to the location results.Samuel Ortiz1-4/+4
2010-03-25Call location detection after setting DNS and routing tablesMohamed Abbas1-1/+2
2010-03-25Portal detection pluginMohamed Abbas5-0/+490
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.
2010-03-24Enable/Disable device when toggling the powered stateSamuel Ortiz1-0/+5
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.
2010-03-23Get simple-agent passphrase from command lineKalle Valo1-4/+29
2010-03-23Use udev_device_get_devtype before __connman_inet_get_device_typeMartin Xu1-1/+30
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.
2010-03-23Set network->device as NULL when the device is removedMartin Xu3-2/+7
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.
2010-03-22Check for task->path when removing an interface or a networkSamuel Ortiz1-1/+7
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.
2010-03-22Ignore wext wireless rtnetlink eventsSamuel Ortiz1-0/+3
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.
2010-03-19Handle the case that MobileNetworkCodeLength is not providedMartin Xu1-15/+16
Don't provide MNC and MCC in this case, but still create the 3G service.
2010-03-19Correct the modem properties key nameMartin Xu1-1/+1
2010-03-18Fix convert_wifi_security for psk stringSamuel Ortiz1-1/+1
CONNMAN_SERVICE_SECURITY_PSK should map to "psk", not "wep".
2010-03-08Export MCC and MNC for cellular servicesMartin Xu1-8/+33
2010-03-07Remove internal GAtChat libraryMarcel Holtmann14-3328/+0
2010-03-07Remove unneeded plugin for Ericsson MBM supportMarcel Holtmann15-954/+0
2010-03-07Remove unneeded plugin for Option HSO supportMarcel Holtmann14-152/+0
2010-03-07Rename Moblin plugin to MeeGo features pluginMarcel Holtmann5-19/+19
2010-03-07Make interface callback tables constMarcel Holtmann2-16/+16
2010-03-07Fix the case when the requested name is already in useVinicius Costa Gomes1-1/+5
We weren't setting the dbus error in this situation.
2010-03-03Release 0.500.50Marcel Holtmann2-1/+5
2010-03-03Add config-format.txt to distributionMarcel Holtmann1-1/+2
2010-03-03Document configuration file formatSamuel Ortiz1-0/+71
Let's avoid having users digging the code to actually understand that format.
2010-03-03Remove DHCP method setting from ethernet pluginMartin Xu1-2/+0
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.
2010-03-03Check ipconfig in __connman_ipconfig_clear_addressMartin Xu1-0/+5
3G service does not have ipconfig if the Primariy Context is not activated. So we need to check the ipconfig here.