platform/upstream/connman.git
13 years agobuild: Add OpenVPN script to ignore list
Marcel Holtmann [Tue, 13 Sep 2011 09:35:28 +0000 (11:35 +0200)]
build: Add OpenVPN script to ignore list

13 years ago6to4: Use ConnMan status URL for checking connectivity
Marcel Holtmann [Tue, 13 Sep 2011 09:34:44 +0000 (11:34 +0200)]
6to4: Use ConnMan status URL for checking connectivity

13 years agowifi: Add SSIDs and frequencies to wpa_supplicant scan for fast scan
Mohamed Abbas [Tue, 13 Sep 2011 06:55:17 +0000 (09:55 +0300)]
wifi: Add SSIDs and frequencies to wpa_supplicant scan for fast scan

Lot of fixes by Jukka Rissanen <jukka.rissanen@linux.intel.com>

13 years agogsupplicant: Get the number of scan ssids from supplicant
Mohamed Abbas [Tue, 13 Sep 2011 06:55:16 +0000 (09:55 +0300)]
gsupplicant: Get the number of scan ssids from supplicant

13 years agogsupplicant: Add support to append char ** entries to dbus dict
Mohamed Abbas [Tue, 13 Sep 2011 06:55:15 +0000 (09:55 +0300)]
gsupplicant: Add support to append char ** entries to dbus dict

13 years agowifi: Add support to multi scan type
Mohamed Abbas [Tue, 13 Sep 2011 06:55:14 +0000 (09:55 +0300)]
wifi: Add support to multi scan type

Allow multi scan type for fast connect.

Scanning request removed from interface_added() because it is already
called in connman_device_set_powered() so no need to call it again
immediately (fix by Jukka Rissanen <jukka.rissanen@linux.intel.com>)

13 years agoservice: Add frequency support to service
Mohamed Abbas [Tue, 13 Sep 2011 06:55:13 +0000 (09:55 +0300)]
service: Add frequency support to service

Get the frequncy of gsupplicant network on connman network
creation, and always save the frequency of the wifi service.

13 years agostorage: Export service loading function
Jukka Rissanen [Tue, 13 Sep 2011 06:55:12 +0000 (09:55 +0300)]
storage: Export service loading function

13 years agostorage: Add services getter
Jukka Rissanen [Tue, 13 Sep 2011 06:55:11 +0000 (09:55 +0300)]
storage: Add services getter

13 years agobootstrap: Remove portal configuration
Jukka Rissanen [Tue, 13 Sep 2011 06:44:25 +0000 (09:44 +0300)]
bootstrap: Remove portal configuration

13 years agoofono: Remove 3G network after disabled 3G modem
Yu A Wang [Tue, 6 Sep 2011 09:06:34 +0000 (05:06 -0400)]
ofono: Remove 3G network after disabled 3G modem

Fixes BMC#22745

13 years agoTODO: Removed wispr task
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:09 +0000 (18:25 +0300)]
TODO: Removed wispr task

13 years agotest: Added Username/Password input support in simple-agent
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:08 +0000 (18:25 +0300)]
test: Added Username/Password input support in simple-agent

13 years agowispr: Requesting login input through the agent
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:07 +0000 (18:25 +0300)]
wispr: Requesting login input through the agent

13 years agoagent: Added Username/Password request input logic
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:06 +0000 (18:25 +0300)]
agent: Added Username/Password request input logic

13 years agowispr: Handle WISPr messages and apply relevant states
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:05 +0000 (18:25 +0300)]
wispr: Handle WISPr messages and apply relevant states

13 years agowispr: Added WISPr XML content parser
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:04 +0000 (18:25 +0300)]
wispr: Added WISPr XML content parser

13 years agowispr: Added portal web request and result handling logic
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:03 +0000 (18:25 +0300)]
wispr: Added portal web request and result handling logic

13 years agowispr: Proxy lookup and web context setup
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:02 +0000 (18:25 +0300)]
wispr: Proxy lookup and web context setup

13 years agowispr: Adding wispr logic entries in service and wpad
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:01 +0000 (18:25 +0300)]
wispr: Adding wispr logic entries in service and wpad

13 years agowispr: Adding structures and start/stop functions
Tomasz Bursztyka [Mon, 29 Aug 2011 15:25:00 +0000 (18:25 +0300)]
wispr: Adding structures and start/stop functions

13 years agolocation: Deleted location support and portal plugin
Tomasz Bursztyka [Mon, 12 Sep 2011 17:42:20 +0000 (19:42 +0200)]
location: Deleted location support and portal plugin

13 years agowifi: Device reference counting fix on scan
Patrik Flykt [Tue, 6 Sep 2011 07:13:17 +0000 (10:13 +0300)]
wifi: Device reference counting fix on scan

When starting to scan, up the reference count on struct connman_device
and release it in the scan callback.

13 years agowifi: Add NULL checks in interface create and remove
Patrik Flykt [Tue, 6 Sep 2011 07:13:16 +0000 (10:13 +0300)]
wifi: Add NULL checks in interface create and remove

Interface create and remove callbacks can be called with wifi user data
set to NULL, add checks for this.

13 years agowifi: Implement network_changed gsupplicant hook
Samuel Ortiz [Thu, 8 Sep 2011 06:01:29 +0000 (08:01 +0200)]
wifi: Implement network_changed gsupplicant hook

13 years agogsupplicant: Implement network properties changes notification
Samuel Ortiz [Thu, 8 Sep 2011 06:00:49 +0000 (08:00 +0200)]
gsupplicant: Implement network properties changes notification

This is only used for propagatong signal changes for now.

13 years agogsupplicant: Track best signal and the corresponding BSS
Samuel Ortiz [Thu, 8 Sep 2011 05:30:42 +0000 (07:30 +0200)]
gsupplicant: Track best signal and the corresponding BSS

13 years agodevice: Remove device_probe and device_remove
Samuel Ortiz [Thu, 8 Sep 2011 06:18:29 +0000 (08:18 +0200)]
device: Remove device_probe and device_remove

They're tiny and useless wrappers.

13 years agotechnology: Disable tethering only when no technology is tethering
Patrik Flykt [Fri, 2 Sep 2011 10:34:58 +0000 (13:34 +0300)]
technology: Disable tethering only when no technology is tethering

When notifying that a technology is not tethering anymore, go
through the list of technologies and disable tethering only if
no other technology is tethering.

13 years agodevice: Set PENDING_DISABLE on device disable
Patrik Flykt [Fri, 2 Sep 2011 10:34:57 +0000 (13:34 +0300)]
device: Set PENDING_DISABLE on device disable

Set powered pending state to PENDING_DISABLE when the device is
being disabled.

13 years agodevice: Simplify device_pending_reset()
Patrik Flykt [Fri, 2 Sep 2011 10:34:56 +0000 (13:34 +0300)]
device: Simplify device_pending_reset()

The g_source for device_pending_reset() is going to be removed when
the callback function returns FALSE. Thus simplify the code with a
few lines.

13 years agotechnology: When disabling technology, disble tethering too
Patrik Flykt [Fri, 2 Sep 2011 10:34:52 +0000 (13:34 +0300)]
technology: When disabling technology, disble tethering too

13 years agotechnology: Move bridege checking to set_tethering()
Patrik Flykt [Fri, 2 Sep 2011 10:34:53 +0000 (13:34 +0300)]
technology: Move bridege checking to set_tethering()

Move bridge checking into set_tethering(), as the bridge
information is not used elsewhere.

13 years agodnsproxy: Use listener data instead of hash table lookups
Patrik Flykt [Mon, 5 Sep 2011 06:21:27 +0000 (08:21 +0200)]
dnsproxy: Use listener data instead of hash table lookups

Pass around struct listener_data instead of always looking it up
via interface from hash table. There are no changes for exported
functions.

13 years agodnsproxy: Fix __connman_dnsproxy_add_listener() error handling
Patrik Flykt [Mon, 5 Sep 2011 06:19:19 +0000 (08:19 +0200)]
dnsproxy: Fix __connman_dnsproxy_add_listener() error handling

Do not add dnsproxy listener data to hash table if we fail to
create either a udp or tcp listener.

13 years agoservice: Filter Adding WPS to the Security Array
Grant Erickson [Mon, 5 Sep 2011 05:31:34 +0000 (07:31 +0200)]
service: Filter Adding WPS to the Security Array

Some access points incorrectly advertise WPS even when they are
configured as open (i.e. no security), so filter adding WPS to the
security array appropriately.

13 years agotimezone: Do not access already released memory
Jukka Rissanen [Wed, 31 Aug 2011 08:42:44 +0000 (11:42 +0300)]
timezone: Do not access already released memory

closedir() releases the filename but we were accessing it later.

13 years agomain: Memory leak in option_debug
Jukka Rissanen [Wed, 31 Aug 2011 12:13:01 +0000 (15:13 +0300)]
main: Memory leak in option_debug

13 years agogsupplicant: Do not access IE array past end of buffer
Jukka Rissanen [Wed, 31 Aug 2011 11:50:10 +0000 (14:50 +0300)]
gsupplicant: Do not access IE array past end of buffer

IE list was traversed past buffer limit in the last round.

13 years agotest: Fix dbus path in service-move-before script
Jukka Rissanen [Wed, 31 Aug 2011 10:15:34 +0000 (13:15 +0300)]
test: Fix dbus path in service-move-before script

Because of patch f8ef8b2a7f7ef1bd9e26df6cfb19a838e6b10b17 that removed
profile support, the path needs to be changed.

13 years agogresolv: Fix buffer size
Jukka Rissanen [Wed, 31 Aug 2011 08:43:46 +0000 (11:43 +0300)]
gresolv: Fix buffer size

Make buf just big enough and initialize it in order to get
rid of valgrind error (accessing uninitialized memory).

13 years agoservice: Behave properly when RequestInput is cancelled
Patrik Flykt [Mon, 5 Sep 2011 04:21:04 +0000 (06:21 +0200)]
service: Behave properly when RequestInput is cancelled

Do the same actions on cancelling RequestInput as when
not retrying a service on ReportError.

Re-fixes BMC#22542.

13 years agoservice: Do not allow service to be moved before a VPN service
Jukka Rissanen [Fri, 26 Aug 2011 08:33:24 +0000 (11:33 +0300)]
service: Do not allow service to be moved before a VPN service

This is needed as the default routes are not set properly
if we allow a service to be moved before a VPN service.

13 years agostats: Move stat files to respective service identifier directory
Alok Barsode [Wed, 24 Aug 2011 13:53:20 +0000 (16:53 +0300)]
stats: Move stat files to respective service identifier directory

13 years agostorage: Switch to <service_id> directories
Alok Barsode [Thu, 25 Aug 2011 13:52:17 +0000 (16:52 +0300)]
storage: Switch to <service_id> directories

Service settings would now reside in /var/lib/connman/service_id/settings.
we fallback on /var/lib/connman/default.profile for a smooth transition.

13 years agostorage: Switch to settings file
Alok Barsode [Wed, 24 Aug 2011 13:53:18 +0000 (16:53 +0300)]
storage: Switch to settings file

All the global settings would reside in /var/lib/connman/settings.
We also migrate global keys from /var/lib/connman/default.profile
to /var/lib/connman/settings for a smooth transition.

13 years agoservice: Add NULL check
Jukka Rissanen [Wed, 24 Aug 2011 14:02:07 +0000 (17:02 +0300)]
service: Add NULL check

13 years agonetwork: Add NULL check
Jukka Rissanen [Wed, 24 Aug 2011 14:02:06 +0000 (17:02 +0300)]
network: Add NULL check

13 years agoconnection: Service was not ref counted properly
Jukka Rissanen [Wed, 24 Aug 2011 14:02:05 +0000 (17:02 +0300)]
connection: Service was not ref counted properly

The reference counting problems were clearly seen with VPN service.

13 years agoprovider: Return existing service path if already connected
Jukka Rissanen [Wed, 24 Aug 2011 14:02:04 +0000 (17:02 +0300)]
provider: Return existing service path if already connected

13 years agoprovider: Add ref counting debug
Jukka Rissanen [Wed, 24 Aug 2011 14:02:03 +0000 (17:02 +0300)]
provider: Add ref counting debug

13 years agoservice: Set the service state to IDLE if method is off or unknown
Jukka Rissanen [Wed, 24 Aug 2011 14:02:02 +0000 (17:02 +0300)]
service: Set the service state to IDLE if method is off or unknown

13 years agoservice: Fix state combining
Jukka Rissanen [Wed, 24 Aug 2011 14:02:01 +0000 (17:02 +0300)]
service: Fix state combining

If we have IPv6 state as DISCONNECT and IPv4 state as
ONLINE or READY then we are not disconnected.

13 years agoservice: Change the debug print location to be more useful
Jukka Rissanen [Wed, 24 Aug 2011 14:02:00 +0000 (17:02 +0300)]
service: Change the debug print location to be more useful

13 years agoservice: Fix function name as it is static
Jukka Rissanen [Wed, 24 Aug 2011 14:01:59 +0000 (17:01 +0300)]
service: Fix function name as it is static

13 years agoservice: Set the user connect status correctly for VPN
Jukka Rissanen [Wed, 24 Aug 2011 14:01:58 +0000 (17:01 +0300)]
service: Set the user connect status correctly for VPN

If the userconnect is not set, then informatation about authentication
errors cannot be reported by agent API.

13 years agonetwork: Change the service disconnect state when necessary
Jukka Rissanen [Wed, 24 Aug 2011 14:01:57 +0000 (17:01 +0300)]
network: Change the service disconnect state when necessary

If we are in idle or failure states, then we should not change to
disconnect state when the service is disconnected. This is because we
were not connected in the first place.

13 years agoservice: Add function to get the ipconfig state
Jukka Rissanen [Wed, 24 Aug 2011 14:01:56 +0000 (17:01 +0300)]
service: Add function to get the ipconfig state

13 years agovpn: Set authentication failure error code properly in provider
Jukka Rissanen [Wed, 24 Aug 2011 14:01:55 +0000 (17:01 +0300)]
vpn: Set authentication failure error code properly in provider

This patch is needed so that we can catch the authentication
error from vpn driver and inform the failure to user.

13 years agoprovider: NULL pointer check
Jukka Rissanen [Wed, 24 Aug 2011 14:01:54 +0000 (17:01 +0300)]
provider: NULL pointer check

13 years agobuild: Disable building of iwmx and iospm by default
Marcel Holtmann [Tue, 30 Aug 2011 21:55:49 +0000 (14:55 -0700)]
build: Disable building of iwmx and iospm by default

13 years agonmcompat: Update with new NetworkManager connection states
Marcel Holtmann [Tue, 30 Aug 2011 21:55:03 +0000 (14:55 -0700)]
nmcompat: Update with new NetworkManager connection states

13 years agobuild: Fix generating links in Makefile.am
Marcel Holtmann [Tue, 30 Aug 2011 18:37:14 +0000 (11:37 -0700)]
build: Fix generating links in Makefile.am

13 years agoservice: Check NULL pointer when setting ipconfig
Jukka Rissanen [Fri, 26 Aug 2011 12:10:51 +0000 (15:10 +0300)]
service: Check NULL pointer when setting ipconfig

Fixes BMC#22766

13 years agonetwork: Read only the ipconfig data if we have no address
Jukka Rissanen [Fri, 26 Aug 2011 11:43:10 +0000 (14:43 +0300)]
network: Read only the ipconfig data if we have no address

We must not read ipconfig data from file if there is already a valid
address that was set by service set_property().

Fixes BMC#22767

13 years agodevice: Remove power pending timeout iff there is a pending request
Samuel Ortiz [Thu, 25 Aug 2011 15:34:06 +0000 (17:34 +0200)]
device: Remove power pending timeout iff there is a pending request

In the ethernet case, there won't be any.

13 years agostorage: remove storage module framework
Alok Barsode [Wed, 24 Aug 2011 13:44:27 +0000 (16:44 +0300)]
storage: remove storage module framework

13 years agoservice: Directly use service load/save functions
Alok Barsode [Wed, 24 Aug 2011 19:36:26 +0000 (21:36 +0200)]
service: Directly use service load/save functions

13 years agostorage: Remove technology state load/save methods from storage module
Alok Barsode [Wed, 24 Aug 2011 13:44:25 +0000 (16:44 +0300)]
storage: Remove technology state load/save methods from storage module

13 years agotest: Change path for services
Alok Barsode [Wed, 24 Aug 2011 13:44:24 +0000 (16:44 +0300)]
test: Change path for services

Since profile support was removed, the service path changes from
/profile/default to /net/connman/service/.

13 years agoprofile: Remove profile.c and profile.h
Alok Barsode [Wed, 24 Aug 2011 13:44:23 +0000 (16:44 +0300)]
profile: Remove profile.c and profile.h

13 years agoservice: Add services changed signal
Alok Barsode [Wed, 24 Aug 2011 13:44:22 +0000 (16:44 +0300)]
service: Add services changed signal

Move the services changed dbus signal handling from profile.

13 years agotechnology: Save/Load offlinemode
Alok Barsode [Wed, 24 Aug 2011 13:44:21 +0000 (16:44 +0300)]
technology: Save/Load offlinemode

Load/Save offlinemode in technology.c instead of profile.c.

13 years agodevice: Remove device persistent code
Alok Barsode [Wed, 24 Aug 2011 19:31:22 +0000 (21:31 +0200)]
device: Remove device persistent code

Connman now stores technology states persistently. Hence
there is no reason to store device states persistently.

13 years agodevice: Remove caching of offlinemode in device structure
Alok Barsode [Wed, 24 Aug 2011 13:44:19 +0000 (16:44 +0300)]
device: Remove caching of offlinemode in device structure

13 years agotechnology: Remove blocked variables and associated functions
Alok Barsode [Wed, 24 Aug 2011 19:26:56 +0000 (21:26 +0200)]
technology: Remove blocked variables and associated functions

13 years agorfkill: Add technology soft blocking API
Alok Barsode [Wed, 24 Aug 2011 13:44:17 +0000 (16:44 +0300)]
rfkill: Add technology soft blocking API

13 years agotechnology: Fix enable notifier to be invoked just once
Alok Barsode [Wed, 24 Aug 2011 13:44:16 +0000 (16:44 +0300)]
technology: Fix enable notifier to be invoked just once

When there are multiple devices, the technology enable notifier
was invoked multiple times. But when disabling the technology, the
disable notifier was invoked just once, hence there was a mismatch
in the technology states.

13 years agotechnology: Remove 'available' state
Alok Barsode [Wed, 24 Aug 2011 13:44:15 +0000 (16:44 +0300)]
technology: Remove 'available' state

The connman technology state machine is simplified.
It now has 3 states:
Offline: Technology is disabled.
Enabled: Technology is enabled.
Connected: Technology is connected.

13 years agotechnology: Redo offlinemode logic
Alok Barsode [Wed, 24 Aug 2011 13:44:14 +0000 (16:44 +0300)]
technology: Redo offlinemode logic

Traverse the list of technologies and enable/disable each instead of
traversing the device list.

13 years agotechnology: Save state persistently
Alok Barsode [Wed, 24 Aug 2011 13:44:13 +0000 (16:44 +0300)]
technology: Save state persistently

Save the technology state persistently. This will help in resuming
the technology state after offlinemode or during startup. This patch
just saves the states.

13 years agotechnology: Remove the global device hash
Alok Barsode [Wed, 24 Aug 2011 13:44:12 +0000 (16:44 +0300)]
technology: Remove the global device hash

There is a device list per technology. Hence removing the global
device hash.

13 years agotechnology: Remove global rfkill table
Alok Barsode [Wed, 24 Aug 2011 13:44:11 +0000 (16:44 +0300)]
technology: Remove global rfkill table

Remove the global rfkill_table and maintain a per technology
rfkill table.

13 years agotechnology: Modify technology enable/disable APIs
Alok Barsode [Wed, 24 Aug 2011 13:44:10 +0000 (16:44 +0300)]
technology: Modify technology enable/disable APIs

Add the pending dbus message per technology. Also move the pending
timeout from manager to technology.

13 years agodevice: Redo pending power request logic
Alok Barsode [Wed, 24 Aug 2011 13:44:09 +0000 (16:44 +0300)]
device: Redo pending power request logic

Use 3 values(None/Enable/Disable) for the power_pending.
It helps keep track of the ongoing pending request.
Add a pending timeout. If the daemon handling the device fails
to send a response then we need to reset the power_pending flag.

13 years agodevice: Update profile in enable_persistent callback
Alok Barsode [Wed, 24 Aug 2011 13:44:08 +0000 (16:44 +0300)]
device: Update profile in enable_persistent callback

13 years agotechnology: Refactor enable/disable APIs
Alok Barsode [Wed, 24 Aug 2011 13:44:07 +0000 (16:44 +0300)]
technology: Refactor enable/disable APIs

connman_technology_enable: Enable a technology. Enables all the
devices in the device_list of the technology.
connman_technology_enabled: Callback for connman_technology_enable.
Changes the state of the technology to ENABLED.
Ditto for connman_technology_disable/connman_technology_disabled.

13 years agowifi: Remove unused code
Jukka Rissanen [Wed, 24 Aug 2011 07:00:22 +0000 (10:00 +0300)]
wifi: Remove unused code

13 years agodevice: Device scan function made private
Jukka Rissanen [Wed, 24 Aug 2011 07:00:21 +0000 (10:00 +0300)]
device: Device scan function made private

The __connman_device_scan() is now static as it is only
called from device.c

13 years agoconnection: Default gateway is changed when reorganizing services
Jukka Rissanen [Wed, 24 Aug 2011 10:08:53 +0000 (12:08 +0200)]
connection: Default gateway is changed when reorganizing services

Fixes BMC#22540

13 years agotest: Script for testing service.MoveBefore interface
Jukka Rissanen [Wed, 24 Aug 2011 08:36:42 +0000 (11:36 +0300)]
test: Script for testing service.MoveBefore interface

13 years agoservice: Prefer online state over ready when comparing services
Jukka Rissanen [Wed, 24 Aug 2011 08:36:41 +0000 (11:36 +0300)]
service: Prefer online state over ready when comparing services

13 years agoservice: Allow state downgrade from online to ready
Jukka Rissanen [Wed, 24 Aug 2011 08:36:40 +0000 (11:36 +0300)]
service: Allow state downgrade from online to ready

13 years agoservice: Allow ready service to be moved before online one
Jukka Rissanen [Wed, 24 Aug 2011 08:36:39 +0000 (11:36 +0300)]
service: Allow ready service to be moved before online one

13 years agoservice: Ignore ipconfig that is not active when moving service
Jukka Rissanen [Wed, 24 Aug 2011 08:36:38 +0000 (11:36 +0300)]
service: Ignore ipconfig that is not active when moving service

13 years agoRelease 0.77 0.77
Marcel Holtmann [Tue, 23 Aug 2011 19:39:01 +0000 (12:39 -0700)]
Release 0.77

13 years agosession: Defer connect/disconnect calls
Daniel Wagner [Mon, 22 Aug 2011 12:58:02 +0000 (14:58 +0200)]
session: Defer connect/disconnect calls

When we call connect and disconnect a service we might
reenter the session state machine. So we should defer
these calls and finishing up the state change first.

13 years agosession: Update reason code on disconnect
Daniel Wagner [Mon, 22 Aug 2011 12:49:15 +0000 (14:49 +0200)]
session: Update reason code on disconnect

13 years agosession: reason2string return a string for unknown
Daniel Wagner [Mon, 22 Aug 2011 12:26:05 +0000 (14:26 +0200)]
session: reason2string return a string for unknown

13 years agosession: Fix selection of services
Daniel Wagner [Mon, 22 Aug 2011 12:24:18 +0000 (14:24 +0200)]
session: Fix selection of services

In case we didn't select a service (entry) reset the one
in the info (deselection). And then we have also take
a refence if the reason was CONNECT.