All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] 3G network support
@ 2011-06-07  8:52 y
  2011-06-07  8:52 ` [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm y
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: y @ 2011-06-07  8:52 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

Hi Saul,

The following commits enables 3G feature for Yocto Project. Please help to review and pull.

Some notes:
a) 0001.patch: Automatically load some kernel modules which is used to support usb network.
b) 0002.patch: upgrade connman to 0.73, also add ofono plugin.
c) 0003.patch: Remove 0.6.10 versio of wpa-supplicant. (This commit is not related with 3G support).
d) 0004.patch: Add 0.42 version of ofono. Because ofonod after 0.42 would crash on Ericsson 3G module.
e) 0005.patch: Add 3G config UI in connman-gnome. Also upgrade it to latest git head.

The following changes since commit 7f34cd1eb2a459709006ae985a14decd4d2152e6:

  tzcode: Update to 2011g (2011-06-06 15:58:42 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib dxu4/upgrade
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/upgrade

Dongxiao Xu (5):
  kernel.bbclass: Auto load cdc-acm and cdc-wdm
  connman: Upgrade to version 0.73
  wpa-supplicant: remove the 0.6.10 version.
  ofono: add 0.42 version which works OK for Ericsson 3G module.
  connman-gnome: Add 3G configuration support

 meta/classes/kernel.bbclass                        |    2 +
 meta/conf/distro/include/default-versions.inc      |    1 +
 .../connman-0.65/fix-shutdown-ap-disconnect.patch  |   42 -
 .../add_xuser_dbus_permission.patch                |    2 +
 .../connman/{connman-0.65 => connman-0.73}/connman |    0
 .../{connman-0.65 => connman-0.73}/dbusperms.patch |    2 +
 .../connman/connman-gnome/3g.patch                 |  505 +++
 .../connman-gnome/applet_menu_popup_fix.patch      |   19 -
 .../connman/connman-gnome/connman-gnome.patch      | 4162 --------------------
 .../remove-connman-property-desktop-file.patch     |   42 -
 .../connman-gnome/service_name_update.patch        |   36 -
 .../{connman-gnome_0.5.bb => connman-gnome_git.bb} |   17 +-
 meta/recipes-connectivity/connman/connman.inc      |    2 +-
 .../connman/{connman_0.65.bb => connman_0.73.bb}   |    8 +-
 meta/recipes-connectivity/ofono/ofono.inc          |    2 +
 meta/recipes-connectivity/ofono/ofono_0.42.bb      |   13 +
 .../wpa-supplicant-0.6.10/99_wpa_supplicant        |    1 -
 .../wpa-supplicant-0.6.10/defaults-sane            |    8 -
 .../wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls   |  180 -
 .../wpa-supplicant-0.6.10/wpa-supplicant.sh        |   85 -
 .../wpa-supplicant-0.6.10/wpa_supplicant.conf      |  690 ----
 .../wpa-supplicant-0.6.10/wpa_supplicant.conf-sane |    7 -
 .../wpa-supplicant/wpa-supplicant-0.6.inc          |   83 -
 .../wpa-supplicant/wpa-supplicant_0.6.10.bb        |    4 -
 24 files changed, 542 insertions(+), 5371 deletions(-)
 delete mode 100644 meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
 rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/add_xuser_dbus_permission.patch (94%)
 rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/connman (100%)
 rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/dbusperms.patch (91%)
 create mode 100644 meta/recipes-connectivity/connman/connman-gnome/3g.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/applet_menu_popup_fix.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/connman-gnome.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/remove-connman-property-desktop-file.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/service_name_update.patch
 rename meta/recipes-connectivity/connman/{connman-gnome_0.5.bb => connman-gnome_git.bb} (72%)
 rename meta/recipes-connectivity/connman/{connman_0.65.bb => connman_0.73.bb} (74%)
 create mode 100644 meta/recipes-connectivity/ofono/ofono_0.42.bb
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/99_wpa_supplicant
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defaults-sane
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa-supplicant.sh
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf-sane
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.inc
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.6.10.bb



^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm
  2011-06-07  8:52 [PATCH 0/5] 3G network support y
@ 2011-06-07  8:52 ` y
  2011-06-07 12:58   ` Bruce Ashfield
  2011-06-07  8:52 ` [PATCH 2/5] connman: Upgrade to version 0.73 y
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: y @ 2011-06-07  8:52 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

Automatically load cdc-acm.ko and cdc-wdm.ko to support 3G module.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/classes/kernel.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 1bb69f5..1b50b38 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -264,6 +264,8 @@ module_autoload_rfcomm = "rfcomm"
 module_autoload_sa1100-rtc = "sa1100-rtc"
 # sa1100-rtc was renamed in 2.6.23 onwards
 module_autoload_rtc-sa1100 = "rtc-sa1100"
+module_autoload_cdc-acm = "cdc-acm"
+module_autoload_cdc-wdm = "cdc-wdm"
 
 # alias defaults (alphabetically sorted)
 module_conf_af_packet = "alias net-pf-17 af_packet"
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 2/5] connman: Upgrade to version 0.73
  2011-06-07  8:52 [PATCH 0/5] 3G network support y
  2011-06-07  8:52 ` [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm y
@ 2011-06-07  8:52 ` y
  2011-06-07  9:12     ` Koen Kooi
  2011-06-07  8:52 ` [PATCH 3/5] wpa-supplicant: remove the 0.6.10 version y
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: y @ 2011-06-07  8:52 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

Enable ofono plugin into sato image.
Remove the fix-shutdown-ap-disconnect.patch since the original logic no longer exists.
Add Upstream-Status information for patches.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 .../connman-0.65/fix-shutdown-ap-disconnect.patch  |   42 --------------------
 .../add_xuser_dbus_permission.patch                |    2 +
 .../connman/{connman-0.65 => connman-0.73}/connman |    0
 .../{connman-0.65 => connman-0.73}/dbusperms.patch |    2 +
 meta/recipes-connectivity/connman/connman.inc      |    2 +-
 .../connman/{connman_0.65.bb => connman_0.73.bb}   |    8 ++--
 6 files changed, 9 insertions(+), 47 deletions(-)
 delete mode 100644 meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
 rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/add_xuser_dbus_permission.patch (94%)
 rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/connman (100%)
 rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/dbusperms.patch (91%)
 rename meta/recipes-connectivity/connman/{connman_0.65.bb => connman_0.73.bb} (74%)

diff --git a/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch b/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
deleted file mode 100644
index a0ad099..0000000
--- a/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-Schedule delayed scan when being disconnected from an AP
-
-When being disconnected from an AP, a delayed scan is scheduled to make
-sure the AP is still there. wpa_supplicant removes a BSS from its bss list
-when it disappears from the scan results twice in a row.
-
-Author: Samuel Ortiz <sameo@linux.intel.com>
-Ported by Dongxiao Xu <dongxiao.xu@intel.com>
-
-diff -ruN connman-0.56-orig/plugins/supplicant.c connman-0.56/plugins/supplicant.c
---- connman-0.56-orig/plugins/supplicant.c	2010-09-25 15:08:21.242927383 +0800
-+++ connman-0.56/plugins/supplicant.c	2010-09-25 15:12:46.346136858 +0800
-@@ -2184,6 +2184,15 @@
- 				scanning == TRUE ? "started" : "finished");
- }
- 
-+static gboolean delayed_scan(gpointer user_data)
-+{
-+	struct supplicant_task *task = user_data;
-+
-+	supplicant_scan(task->device);
-+
-+	return FALSE;
-+}
-+
- static void state_change(struct supplicant_task *task, DBusMessage *msg)
- {
- 	DBusError error;
-@@ -2277,7 +2286,13 @@
- 				task_connect(task);
- 			} else
- 				task->network = NULL;
-+		} else {
-+			if (task->state == WPA_DISCONNECTED)
-+				g_timeout_add_seconds(10, delayed_scan, task);
-+
-+			remove_network(task);
- 		}
-+
- 		break;
- 
- 	default:
diff --git a/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch b/meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
similarity index 94%
rename from meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch
rename to meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
index 787d49b..764c689 100644
--- a/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch
+++ b/meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
@@ -1,6 +1,8 @@
 Some platform (like atom-pc) enables rootless X,
 thus we need to add the xuser in the list.
 
+Upstream-Status: Inappropriate [configuration]
+
 Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
 
 diff -ruN connman-0.65-orig/src/connman-dbus.conf connman-0.65/src/connman-dbus.conf
diff --git a/meta/recipes-connectivity/connman/connman-0.65/connman b/meta/recipes-connectivity/connman/connman-0.73/connman
similarity index 100%
rename from meta/recipes-connectivity/connman/connman-0.65/connman
rename to meta/recipes-connectivity/connman/connman-0.73/connman
diff --git a/meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch b/meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
similarity index 91%
rename from meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch
rename to meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
index 100af03..c331654 100644
--- a/meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch
+++ b/meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
@@ -1,3 +1,5 @@
+Upstream-Status: Inappropriate [configuration]
+
 Index: git/src/connman-dbus.conf
 ===================================================================
 --- git.orig/src/connman-dbus.conf	2009-05-26 00:34:35.000000000 +0100
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
index fb970ed..f6565a5 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
                     file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e"
 
 DEPENDS  = "libgdbus dbus glib-2.0 hal iptables"
-RDEPENDS_${PN} = "wpa-supplicant resolvconf"
+RDEPENDS_${PN} = "wpa-supplicant resolvconf ofono"
 
 INITSCRIPT_NAME = "connman"
 INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
diff --git a/meta/recipes-connectivity/connman/connman_0.65.bb b/meta/recipes-connectivity/connman/connman_0.73.bb
similarity index 74%
rename from meta/recipes-connectivity/connman/connman_0.65.bb
rename to meta/recipes-connectivity/connman/connman_0.73.bb
index 852f8dc..ffe0074 100644
--- a/meta/recipes-connectivity/connman/connman_0.65.bb
+++ b/meta/recipes-connectivity/connman/connman_0.73.bb
@@ -1,5 +1,5 @@
 require connman.inc
-PR = "r1"
+PR = "r0"
 
 EXTRA_OECONF += "\
   ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
@@ -16,14 +16,14 @@ EXTRA_OECONF += "\
   --disable-udev \
   --disable-polkit \
   --enable-client \
+  --enable-ofono \
   --prefix=/usr --sysconfdir=/etc --localstatedir=/var"
 
 SRC_URI  = "\
   ${KERNELORG_MIRROR}/linux/network/connman/connman-${PV}.tar.gz \
-  file://fix-shutdown-ap-disconnect.patch \
   file://add_xuser_dbus_permission.patch \
   file://connman \
 "
 
-SRC_URI[md5sum] = "bd714da295ed2d2d91a49539f4c4fa3a"
-SRC_URI[sha256sum] = "a1c1d93da6bb4c2d8ae53293b06f237e02f5e796d2bba73ec639a466d05259c3"
+SRC_URI[md5sum] = "01085b2ed8f7b11a41724f1528720cc7"
+SRC_URI[sha256sum] = "b71ff2c3925ea82a7ebf818685f809e595d5c47d767005dfb149c6264b098417"
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 3/5] wpa-supplicant: remove the 0.6.10 version.
  2011-06-07  8:52 [PATCH 0/5] 3G network support y
  2011-06-07  8:52 ` [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm y
  2011-06-07  8:52 ` [PATCH 2/5] connman: Upgrade to version 0.73 y
@ 2011-06-07  8:52 ` y
  2011-06-07  8:52 ` [PATCH 4/5] ofono: add 0.42 version which works OK for Ericsson 3G module y
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: y @ 2011-06-07  8:52 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

Remove the 0.6.10 version since now 0.7.3 is the latest stable version.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 .../wpa-supplicant-0.6.10/99_wpa_supplicant        |    1 -
 .../wpa-supplicant-0.6.10/defaults-sane            |    8 -
 .../wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls   |  180 -----
 .../wpa-supplicant-0.6.10/wpa-supplicant.sh        |   85 ---
 .../wpa-supplicant-0.6.10/wpa_supplicant.conf      |  690 --------------------
 .../wpa-supplicant-0.6.10/wpa_supplicant.conf-sane |    7 -
 .../wpa-supplicant/wpa-supplicant-0.6.inc          |   83 ---
 .../wpa-supplicant/wpa-supplicant_0.6.10.bb        |    4 -
 8 files changed, 0 insertions(+), 1058 deletions(-)
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/99_wpa_supplicant
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defaults-sane
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa-supplicant.sh
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf-sane
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.inc
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.6.10.bb

diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/99_wpa_supplicant b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/99_wpa_supplicant
deleted file mode 100644
index 6ff4dd8..0000000
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/99_wpa_supplicant
+++ /dev/null
@@ -1 +0,0 @@
-d root root 0700 /var/run/wpa_supplicant none
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defaults-sane b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defaults-sane
deleted file mode 100644
index 67c4cbd..0000000
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defaults-sane
+++ /dev/null
@@ -1,8 +0,0 @@
-# Useful flags:
-#  -i <ifname>          Interface (required, unless specified in config)
-#  -D <driver>          Wireless Driver
-#  -d                   Debugging (-dd for more)
-#  -q                   Quiet (-qq for more)
-
-CONFIG="/etc/wpa_supplicant.conf"
-OPTIONS="-i eth1 -D wext"
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls
deleted file mode 100644
index e907271..0000000
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls
+++ /dev/null
@@ -1,180 +0,0 @@
-# This file lists the configuration options that are used when building the
-# hostapd binary. All lines starting with # are ignored. Configuration option
-# lines must be commented out complete, if they are not to be included, i.e.,
-# just setting VARIABLE=n is not disabling that variable.
-#
-# This file is included in Makefile, so variables like CFLAGS and LIBS can also
-# be modified from here. In most cass, these lines should use += in order not
-# to override previous values of the variables.
-
-CFLAGS = $(TARGET_CFLAGS) -I../src/hostapd -I../src/utils -I../src/driver/modules -I../src/rsn_supp -I../src/common -I../src/crypto -I../src -I./ -Wall -MMD
-LIBS = $(TARGET_LDFLAGS)
-
-# Driver interface for Host AP driver
-CONFIG_DRIVER_HOSTAP=y
-
-# Driver interface for Agere driver
-#CONFIG_DRIVER_HERMES=y
-#CFLAGS += -I../../hcf -I../../include -I../../include/hcf
-
-# Driver interface for madwifi driver
-#CONFIG_DRIVER_MADWIFI=y
-#CFLAGS += -I../madwifi/wpa
-
-# Driver interface for Prism54 driver
-#CONFIG_DRIVER_PRISM54=y
-
-# Driver interface for ndiswrapper
-#CONFIG_DRIVER_NDISWRAPPER=y
-
-# Driver interface for Atmel driver
-#CONFIG_DRIVER_ATMEL=y
-
-# Driver interface for Broadcom driver
-#CONFIG_DRIVER_BROADCOM=y
-#CFLAGS += -I/opt/WRT54GS/release/src/include
-
-# Driver interface for Intel ipw2100 driver
-#CONFIG_DRIVER_IPW2100=y
-
-# Driver interface for generic Linux wireless extensions
-CONFIG_DRIVER_WEXT=y
-
-# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
-#CONFIG_DRIVER_BSD=y
-#CFLAGS += -I/usr/local/include
-#LIBS += -L/usr/local/lib
-
-# Driver interface for development testing
-#CONFIG_DRIVER_TEST=y
-
-# Driver interface for wired Ethernet drivers
-CONFIG_DRIVER_WIRED=y
-
-# Enable IEEE 802.1X Supplicant (automatically included if any EAP method is
-# included)
-CONFIG_IEEE8021X_EAPOL=y
-
-# EAP-MD5 (automatically included if EAP-TTLS is enabled)
-CONFIG_EAP_MD5=y
-
-# EAP-MSCHAPv2 (automatically included if EAP-PEAP is enabled)
-CONFIG_EAP_MSCHAPV2=y
-
-# EAP-TLS
-CONFIG_EAP_TLS=y
-
-# EAL-PEAP
-CONFIG_EAP_PEAP=y
-
-# EAP-TTLS
-CONFIG_EAP_TTLS=y
-
-# EAP-GTC
-CONFIG_EAP_GTC=y
-
-# EAP-OTP
-CONFIG_EAP_OTP=y
-
-# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
-#CONFIG_EAP_SIM=y
-
-# EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
-#CONFIG_EAP_PSK=y
-
-# EAP-PAX
-#CONFIG_EAP_PAX=y
-
-# LEAP
-CONFIG_EAP_LEAP=y
-
-# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
-#CONFIG_EAP_AKA=y
-
-# PKCS#12 (PFX) support (used to read private key and certificate file from
-# a file that usually has extension .p12 or .pfx)
-CONFIG_PKCS12=y
-
-# Smartcard support (i.e., private key on a smartcard), e.g., with openssl
-# engine.
-CONFIG_SMARTCARD=y
-
-# PC/SC interface for smartcards (USIM, GSM SIM)
-# Enable this if EAP-SIM or EAP-AKA is included
-#CONFIG_PCSC=y
-
-# Development testing
-#CONFIG_EAPOL_TEST=y
-
-# Replace native Linux implementation of packet sockets with libdnet/libpcap.
-# This will be automatically set for non-Linux OS.
-#CONFIG_DNET_PCAP=y
-
-# Include control interface for external programs, e.g, wpa_cli
-CONFIG_CTRL_IFACE=y
-
-# Include support for GNU Readline and History Libraries in wpa_cli.
-# When building a wpa_cli binary for distribution, please note that these
-# libraries are licensed under GPL and as such, BSD license may not apply for
-# the resulting binary.
-#CONFIG_READLINE=y
-
-# Remove debugging code that is printing out debug message to stdout.
-# This can be used to reduce the size of the wpa_supplicant considerably
-# if debugging code is not needed. The size reduction can be around 35%
-# (e.g., 90 kB).
-#CONFIG_NO_STDOUT_DEBUG=y
-
-# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save
-# 35-50 kB in code size.
-#CONFIG_NO_WPA=y
-
-# Select configuration backend:
-# file = text file (e.g., wpa_supplicant.conf)
-# winreg = Windows registry (see win_example.reg for an example)
-CONFIG_BACKEND=file
-
-# Select program entry point implementation:
-# main = UNIX/POSIX like main() function (default)
-# main_winsvc = Windows service (read parameters from registry)
-# main_none = Very basic example (development use only)
-#CONFIG_MAIN=main
-
-# Select wrapper for operatins system and C library specific functions
-# unix = UNIX/POSIX like systems (default)
-# win32 = Windows systems
-# none = Empty template
-#CONFIG_OS=unix
-
-# Select event loop implementation
-# eloop = select() loop (default)
-# eloop_win = Windows events and WaitForMultipleObject() loop
-# eloop_none = Empty template
-#CONFIG_ELOOP=eloop
-
-# Select layer 2 packet implementation
-# linux = Linux packet socket (default)
-# pcap = libpcap/libdnet/WinPcap
-# freebsd = FreeBSD libpcap
-# winpcap = WinPcap with receive thread
-# none = Empty template
-#CONFIG_L2_PACKET=linux
-
-# IEEE 802.11i/IEEE 802.11e STAKey negotiation for direct link connection
-#CONFIG_STAKEY=y
-
-# Select TLS implementation
-# openssl = OpenSSL (default)
-# gnutls = GnuTLS (needed for TLS/IA, see also CONFIG_GNUTLS_EXTRA)
-# none = Empty template
-CONFIG_TLS=gnutls
-
-# Whether to enable TLS/IA support, which is required for EAP-TTLSv1.
-# You need CONFIG_TLS=gnutls for this to have any effect. Please note that
-# even though the core GnuTLS library is released under LGPL, this extra
-# library uses GPL and as such, the terms of GPL apply to the combination
-# of wpa_supplicant and GnuTLS if this option is enabled. BSD license may not
-# apply for distribution of the resulting binary.
-CONFIG_GNUTLS_EXTRA=y
-
-CONFIG_CTRL_IFACE_DBUS=y
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa-supplicant.sh b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa-supplicant.sh
deleted file mode 100644
index 5c9e5d3..0000000
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa-supplicant.sh
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/sh
-
-
-WPA_SUP_BIN="/usr/sbin/wpa_supplicant"
-WPA_SUP_PNAME="wpa_supplicant"
-WPA_SUP_PIDFILE="/var/run/wpa_supplicant.$IFACE.pid"
-WPA_SUP_OPTIONS="-B -P $WPA_SUP_PIDFILE -i $IFACE"
-
-VERBOSITY=0
-
-
-if [ -s "$IF_WPA_CONF" ]; then
-	WPA_SUP_CONF="-c $IF_WPA_CONF"
-else
-	exit 0
-fi
-
-if [ ! -x "$WPA_SUP_BIN" ]; then
-	
-	if [ "$VERBOSITY" = "1" ]; then
-		echo "$WPA_SUP_PNAME: binaries not executable or missing from $WPA_SUP_BIN"
-	fi
-	
-	exit 1
-fi
-
-if [ "$MODE" = "start" ] ; then
-	# driver type of interface, defaults to wext when undefined
-	if [ -s "/etc/wpa_supplicant/driver.$IFACE" ]; then
-		IF_WPA_DRIVER=$(cat "/etc/wpa_supplicant/driver.$IFACE")
-	elif [ -z "$IF_WPA_DRIVER" ]; then
-		
-		if [ "$VERBOSITY" = "1" ]; then
-			echo "$WPA_SUP_PNAME: wpa-driver not provided, using \"wext\""
-		fi
-		
-		IF_WPA_DRIVER="wext"
-	fi
-	
-	# if we have passed the criteria, start wpa_supplicant
-	if [ -n "$WPA_SUP_CONF" ]; then
-		
-		if [ "$VERBOSITY" = "1" ]; then
-			echo "$WPA_SUP_PNAME: $WPA_SUP_BIN $WPA_SUP_OPTIONS $WPA_SUP_CONF -D $IF_WPA_DRIVER"
-		fi
-		
-		start-stop-daemon --start --quiet \
-			--name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE \
-			--  $WPA_SUP_OPTIONS $WPA_SUP_CONF -D $IF_WPA_DRIVER
-	fi
-
-	# if the interface socket exists, then wpa_supplicant was invoked successfully
-	if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
-	
-		if [ "$VERBOSITY" = "1" ]; then
-			echo "$WPA_SUP_PNAME: ctrl_interface socket located at $WPA_COMMON_CTRL_IFACE/$IFACE"
-		fi
-
-		exit 0
-		
-	fi
-	
-elif [ "$MODE" = "stop" ]; then
-
-	if [ -f "$WPA_SUP_PIDFILE" ]; then
-		
-		if [ "$VERBOSITY" = "1" ]; then
-			echo "$WPA_SUP_PNAME: terminating $WPA_SUP_PNAME daemon"
-		fi
-		
-		start-stop-daemon --stop --quiet \
-			--name $WPA_SUP_PNAME --pidfile	$WPA_SUP_PIDFILE
-			
-		if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
-			rm -f $WPA_COMMON_CTRL_IFACE/$IFACE
-		fi
-			
-		if [ -f "$WPA_SUP_PIDFILE" ]; then
-			rm -f $WPA_SUP_PIDFILE
-		fi
-	fi
-
-fi
-
-exit 0
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf
deleted file mode 100644
index f0c993d..0000000
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf
+++ /dev/null
@@ -1,690 +0,0 @@
-##### Example wpa_supplicant configuration file ###############################
-#
-# This file describes configuration file format and lists all available option.
-# Please also take a look at simpler configuration examples in 'examples'
-# subdirectory.
-#
-# Empty lines and lines starting with # are ignored
-
-# NOTE! This file may contain password information and should probably be made
-# readable only by root user on multiuser systems.
-
-# Note: All file paths in this configuration file should use full (absolute,
-# not relative to working directory) path in order to allow working directory
-# to be changed. This can happen if wpa_supplicant is run in the background.
-
-# Whether to allow wpa_supplicant to update (overwrite) configuration
-#
-# This option can be used to allow wpa_supplicant to overwrite configuration
-# file whenever configuration is changed (e.g., new network block is added with
-# wpa_cli or wpa_gui, or a password is changed). This is required for
-# wpa_cli/wpa_gui to be able to store the configuration changes permanently.
-# Please note that overwriting configuration file will remove the comments from
-# it.
-#update_config=1
-
-# global configuration (shared by all network blocks)
-#
-# Parameters for the control interface. If this is specified, wpa_supplicant
-# will open a control interface that is available for external programs to
-# manage wpa_supplicant. The meaning of this string depends on which control
-# interface mechanism is used. For all cases, the existance of this parameter
-# in configuration is used to determine whether the control interface is
-# enabled.
-#
-# For UNIX domain sockets (default on Linux and BSD): This is a directory that
-# will be created for UNIX domain sockets for listening to requests from
-# external programs (CLI/GUI, etc.) for status information and configuration.
-# The socket file will be named based on the interface name, so multiple
-# wpa_supplicant processes can be run at the same time if more than one
-# interface is used.
-# /var/run/wpa_supplicant is the recommended directory for sockets and by
-# default, wpa_cli will use it when trying to connect with wpa_supplicant.
-#
-# Access control for the control interface can be configured by setting the
-# directory to allow only members of a group to use sockets. This way, it is
-# possible to run wpa_supplicant as root (since it needs to change network
-# configuration and open raw sockets) and still allow GUI/CLI components to be
-# run as non-root users. However, since the control interface can be used to
-# change the network configuration, this access needs to be protected in many
-# cases. By default, wpa_supplicant is configured to use gid 0 (root). If you
-# want to allow non-root users to use the control interface, add a new group
-# and change this value to match with that group. Add users that should have
-# control interface access to this group. If this variable is commented out or
-# not included in the configuration file, group will not be changed from the
-# value it got by default when the directory or socket was created.
-#
-# When configuring both the directory and group, use following format:
-# DIR=/var/run/wpa_supplicant GROUP=wheel
-# DIR=/var/run/wpa_supplicant GROUP=0
-# (group can be either group name or gid)
-#
-# For UDP connections (default on Windows): The value will be ignored. This
-# variable is just used to select that the control interface is to be created.
-# The value can be set to, e.g., udp (ctrl_interface=udp)
-#
-# For Windows Named Pipe: This value can be used to set the security descriptor
-# for controlling access to the control interface. Security descriptor can be
-# set using Security Descriptor String Format (see http://msdn.microsoft.com/
-# library/default.asp?url=/library/en-us/secauthz/security/
-# security_descriptor_string_format.asp). The descriptor string needs to be
-# prefixed with SDDL=. For example, ctrl_interface=SDDL=D: would set an empty
-# DACL (which will reject all connections). See README-Windows.txt for more
-# information about SDDL string format.
-#
-ctrl_interface=/var/run/wpa_supplicant
-
-# IEEE 802.1X/EAPOL version
-# wpa_supplicant is implemented based on IEEE Std 802.1X-2004 which defines
-# EAPOL version 2. However, there are many APs that do not handle the new
-# version number correctly (they seem to drop the frames completely). In order
-# to make wpa_supplicant interoperate with these APs, the version number is set
-# to 1 by default. This configuration value can be used to set it to the new
-# version (2).
-eapol_version=1
-
-# AP scanning/selection
-# By default, wpa_supplicant requests driver to perform AP scanning and then
-# uses the scan results to select a suitable AP. Another alternative is to
-# allow the driver to take care of AP scanning and selection and use
-# wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association
-# information from the driver.
-# 1: wpa_supplicant initiates scanning and AP selection
-# 0: driver takes care of scanning, AP selection, and IEEE 802.11 association
-#    parameters (e.g., WPA IE generation); this mode can also be used with
-#    non-WPA drivers when using IEEE 802.1X mode; do not try to associate with
-#    APs (i.e., external program needs to control association). This mode must
-#    also be used when using wired Ethernet drivers.
-# 2: like 0, but associate with APs using security policy and SSID (but not
-#    BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to
-#    enable operation with hidden SSIDs and optimized roaming; in this mode,
-#    the network blocks in the configuration file are tried one by one until
-#    the driver reports successful association; each network block should have
-#    explicit security policy (i.e., only one option in the lists) for
-#    key_mgmt, pairwise, group, proto variables
-ap_scan=1
-
-# EAP fast re-authentication
-# By default, fast re-authentication is enabled for all EAP methods that
-# support it. This variable can be used to disable fast re-authentication.
-# Normally, there is no need to disable this.
-fast_reauth=1
-
-# OpenSSL Engine support
-# These options can be used to load OpenSSL engines.
-# The two engines that are supported currently are shown below:
-# They are both from the opensc project (http://www.opensc.org/)
-# By default no engines are loaded.
-# make the opensc engine available
-#opensc_engine_path=/usr/lib/opensc/engine_opensc.so
-# make the pkcs11 engine available
-#pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
-# configure the path to the pkcs11 module required by the pkcs11 engine
-#pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
-
-# Dynamic EAP methods
-# If EAP methods were built dynamically as shared object files, they need to be
-# loaded here before being used in the network blocks. By default, EAP methods
-# are included statically in the build, so these lines are not needed
-#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
-#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
-
-# Driver interface parameters
-# This field can be used to configure arbitrary driver interace parameters. The
-# format is specific to the selected driver interface. This field is not used
-# in most cases.
-#driver_param="field=value"
-
-# Maximum lifetime for PMKSA in seconds; default 43200
-#dot11RSNAConfigPMKLifetime=43200
-# Threshold for reauthentication (percentage of PMK lifetime); default 70
-#dot11RSNAConfigPMKReauthThreshold=70
-# Timeout for security association negotiation in seconds; default 60
-#dot11RSNAConfigSATimeout=60
-
-# network block
-#
-# Each network (usually AP's sharing the same SSID) is configured as a separate
-# block in this configuration file. The network blocks are in preference order
-# (the first match is used).
-#
-# network block fields:
-#
-# disabled:
-#	0 = this network can be used (default)
-#	1 = this network block is disabled (can be enabled through ctrl_iface,
-#	    e.g., with wpa_cli or wpa_gui)
-#
-# id_str: Network identifier string for external scripts. This value is passed
-#	to external action script through wpa_cli as WPA_ID_STR environment
-#	variable to make it easier to do network specific configuration.
-#
-# ssid: SSID (mandatory); either as an ASCII string with double quotation or
-#	as hex string; network name
-#
-# scan_ssid:
-#	0 = do not scan this SSID with specific Probe Request frames (default)
-#	1 = scan with SSID-specific Probe Request frames (this can be used to
-#	    find APs that do not accept broadcast SSID or use multiple SSIDs;
-#	    this will add latency to scanning, so enable this only when needed)
-#
-# bssid: BSSID (optional); if set, this network block is used only when
-#	associating with the AP using the configured BSSID
-#
-# priority: priority group (integer)
-# By default, all networks will get same priority group (0). If some of the
-# networks are more desirable, this field can be used to change the order in
-# which wpa_supplicant goes through the networks when selecting a BSS. The
-# priority groups will be iterated in decreasing priority (i.e., the larger the
-# priority value, the sooner the network is matched against the scan results).
-# Within each priority group, networks will be selected based on security
-# policy, signal strength, etc.
-# Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode are not
-# using this priority to select the order for scanning. Instead, they try the
-# networks in the order that used in the configuration file.
-#
-# mode: IEEE 802.11 operation mode
-# 0 = infrastructure (Managed) mode, i.e., associate with an AP (default)
-# 1 = IBSS (ad-hoc, peer-to-peer)
-# Note: IBSS can only be used with key_mgmt NONE (plaintext and static WEP)
-# and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition, ap_scan has
-# to be set to 2 for IBSS. WPA-None requires following network block options:
-# proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not
-# both), and psk must also be set.
-#
-# proto: list of accepted protocols
-# WPA = WPA/IEEE 802.11i/D3.0
-# RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for RSN)
-# If not set, this defaults to: WPA RSN
-#
-# key_mgmt: list of accepted authenticated key management protocols
-# WPA-PSK = WPA pre-shared key (this requires 'psk' field)
-# WPA-EAP = WPA using EAP authentication (this can use an external
-#	program, e.g., Xsupplicant, for IEEE 802.1X EAP Authentication
-# IEEE8021X = IEEE 802.1X using EAP authentication and (optionally) dynamically
-#	generated WEP keys
-# NONE = WPA is not used; plaintext or static WEP could be used
-# If not set, this defaults to: WPA-PSK WPA-EAP
-#
-# auth_alg: list of allowed IEEE 802.11 authentication algorithms
-# OPEN = Open System authentication (required for WPA/WPA2)
-# SHARED = Shared Key authentication (requires static WEP keys)
-# LEAP = LEAP/Network EAP (only used with LEAP)
-# If not set, automatic selection is used (Open System with LEAP enabled if
-# LEAP is allowed as one of the EAP methods).
-#
-# pairwise: list of accepted pairwise (unicast) ciphers for WPA
-# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
-# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
-# NONE = Use only Group Keys (deprecated, should not be included if APs support
-#	pairwise keys)
-# If not set, this defaults to: CCMP TKIP
-#
-# group: list of accepted group (broadcast/multicast) ciphers for WPA
-# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
-# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
-# WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
-# WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE 802.11]
-# If not set, this defaults to: CCMP TKIP WEP104 WEP40
-#
-# psk: WPA preshared key; 256-bit pre-shared key
-# The key used in WPA-PSK mode can be entered either as 64 hex-digits, i.e.,
-# 32 bytes or as an ASCII passphrase (in which case, the real PSK will be
-# generated using the passphrase and SSID). ASCII passphrase must be between
-# 8 and 63 characters (inclusive).
-# This field is not needed, if WPA-EAP is used.
-# Note: Separate tool, wpa_passphrase, can be used to generate 256-bit keys
-# from ASCII passphrase. This process uses lot of CPU and wpa_supplicant
-# startup and reconfiguration time can be optimized by generating the PSK only
-# only when the passphrase or SSID has actually changed.
-#
-# eapol_flags: IEEE 802.1X/EAPOL options (bit field)
-# Dynamic WEP key required for non-WPA mode
-# bit0 (1): require dynamically generated unicast WEP key
-# bit1 (2): require dynamically generated broadcast WEP key
-# 	(3 = require both keys; default)
-# Note: When using wired authentication, eapol_flags must be set to 0 for the
-# authentication to be completed successfully.
-#
-# proactive_key_caching:
-# Enable/disable opportunistic PMKSA caching for WPA2.
-# 0 = disabled (default)
-# 1 = enabled
-#
-# wep_key0..3: Static WEP key (ASCII in double quotation, e.g. "abcde" or
-# hex without quotation, e.g., 0102030405)
-# wep_tx_keyidx: Default WEP key index (TX) (0..3)
-#
-# peerkey: Whether PeerKey negotiation for direct links (IEEE 802.11e DLS) is
-# allowed. This is only used with RSN/WPA2.
-# 0 = disabled (default)
-# 1 = enabled
-#peerkey=1
-#
-# Following fields are only used with internal EAP implementation.
-# eap: space-separated list of accepted EAP methods
-#	MD5 = EAP-MD5 (unsecure and does not generate keying material ->
-#			cannot be used with WPA; to be used as a Phase 2 method
-#			with EAP-PEAP or EAP-TTLS)
-#       MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately with WPA; to be used
-#		as a Phase 2 method with EAP-PEAP or EAP-TTLS)
-#       OTP = EAP-OTP (cannot be used separately with WPA; to be used
-#		as a Phase 2 method with EAP-PEAP or EAP-TTLS)
-#       GTC = EAP-GTC (cannot be used separately with WPA; to be used
-#		as a Phase 2 method with EAP-PEAP or EAP-TTLS)
-#	TLS = EAP-TLS (client and server certificate)
-#	PEAP = EAP-PEAP (with tunnelled EAP authentication)
-#	TTLS = EAP-TTLS (with tunnelled EAP or PAP/CHAP/MSCHAP/MSCHAPV2
-#			 authentication)
-#	If not set, all compiled in methods are allowed.
-#
-# identity: Identity string for EAP
-# anonymous_identity: Anonymous identity string for EAP (to be used as the
-#	unencrypted identity with EAP types that support different tunnelled
-#	identity, e.g., EAP-TTLS)
-# password: Password string for EAP
-# ca_cert: File path to CA certificate file (PEM/DER). This file can have one
-#	or more trusted CA certificates. If ca_cert and ca_path are not
-#	included, server certificate will not be verified. This is insecure and
-#	a trusted CA certificate should always be configured when using
-#	EAP-TLS/TTLS/PEAP. Full path should be used since working directory may
-#	change when wpa_supplicant is run in the background.
-#	On Windows, trusted CA certificates can be loaded from the system
-#	certificate store by setting this to cert_store://<name>, e.g.,
-#	ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
-#	Note that when running wpa_supplicant as an application, the user
-#	certificate store (My user account) is used, whereas computer store
-#	(Computer account) is used when running wpasvc as a service.
-# ca_path: Directory path for CA certificate files (PEM). This path may
-#	contain multiple CA certificates in OpenSSL format. Common use for this
-#	is to point to system trusted CA list which is often installed into
-#	directory like /etc/ssl/certs. If configured, these certificates are
-#	added to the list of trusted CAs. ca_cert may also be included in that
-#	case, but it is not required.
-# client_cert: File path to client certificate file (PEM/DER)
-#	Full path should be used since working directory may change when
-#	wpa_supplicant is run in the background.
-#	Alternatively, a named configuration blob can be used by setting this
-#	to blob://<blob name>.
-# private_key: File path to client private key file (PEM/DER/PFX)
-#	When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be
-#	commented out. Both the private key and certificate will be read from
-#	the PKCS#12 file in this case. Full path should be used since working
-#	directory may change when wpa_supplicant is run in the background.
-#	Windows certificate store can be used by leaving client_cert out and
-#	configuring private_key in one of the following formats:
-#	cert://substring_to_match
-#	hash://certificate_thumbprint_in_hex
-#	for example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
-#	Note that when running wpa_supplicant as an application, the user
-#	certificate store (My user account) is used, whereas computer store
-#	(Computer account) is used when running wpasvc as a service.
-#	Alternatively, a named configuration blob can be used by setting this
-#	to blob://<blob name>.
-# private_key_passwd: Password for private key file (if left out, this will be
-#	asked through control interface)
-# dh_file: File path to DH/DSA parameters file (in PEM format)
-#	This is an optional configuration file for setting parameters for an
-#	ephemeral DH key exchange. In most cases, the default RSA
-#	authentication does not use this configuration. However, it is possible
-#	setup RSA to use ephemeral DH key exchange. In addition, ciphers with
-#	DSA keys always use ephemeral DH keys. This can be used to achieve
-#	forward secrecy. If the file is in DSA parameters format, it will be
-#	automatically converted into DH params.
-# subject_match: Substring to be matched against the subject of the
-#	authentication server certificate. If this string is set, the server
-#	sertificate is only accepted if it contains this string in the subject.
-#	The subject string is in following format:
-#	/C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@example.com
-# altsubject_match: Semicolon separated string of entries to be matched against
-#	the alternative subject name of the authentication server certificate.
-#	If this string is set, the server sertificate is only accepted if it
-#	contains one of the entries in an alternative subject name extension.
-#	altSubjectName string is in following format: TYPE:VALUE
-#	Example: EMAIL:server@example.com
-#	Example: DNS:server.example.com;DNS:server2.example.com
-#	Following types are supported: EMAIL, DNS, URI
-# phase1: Phase1 (outer authentication, i.e., TLS tunnel) parameters
-#	(string with field-value pairs, e.g., "peapver=0" or
-#	"peapver=1 peaplabel=1")
-#	'peapver' can be used to force which PEAP version (0 or 1) is used.
-#	'peaplabel=1' can be used to force new label, "client PEAP encryption",
-#	to be used during key derivation when PEAPv1 or newer. Most existing
-#	PEAPv1 implementation seem to be using the old label, "client EAP
-#	encryption", and wpa_supplicant is now using that as the default value.
-#	Some servers, e.g., Radiator, may require peaplabel=1 configuration to
-#	interoperate with PEAPv1; see eap_testing.txt for more details.
-#	'peap_outer_success=0' can be used to terminate PEAP authentication on
-#	tunneled EAP-Success. This is required with some RADIUS servers that
-#	implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
-#	Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
-#	include_tls_length=1 can be used to force wpa_supplicant to include
-#	TLS Message Length field in all TLS messages even if they are not
-#	fragmented.
-#	sim_min_num_chal=3 can be used to configure EAP-SIM to require three
-#	challenges (by default, it accepts 2 or 3)
-# phase2: Phase2 (inner authentication with TLS tunnel) parameters
-#	(string with field-value pairs, e.g., "auth=MSCHAPV2" for EAP-PEAP or
-#	"autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS)
-# Following certificate/private key fields are used in inner Phase2
-# authentication when using EAP-TTLS or EAP-PEAP.
-# ca_cert2: File path to CA certificate file. This file can have one or more
-#	trusted CA certificates. If ca_cert2 and ca_path2 are not included,
-#	server certificate will not be verified. This is insecure and a trusted
-#	CA certificate should always be configured.
-# ca_path2: Directory path for CA certificate files (PEM)
-# client_cert2: File path to client certificate file
-# private_key2: File path to client private key file
-# private_key2_passwd: Password for private key file
-# dh_file2: File path to DH/DSA parameters file (in PEM format)
-# subject_match2: Substring to be matched against the subject of the
-#	authentication server certificate.
-# altsubject_match2: Substring to be matched against the alternative subject
-#	name of the authentication server certificate.
-#
-# fragment_size: Maximum EAP fragment size in bytes (default 1398).
-#	This value limits the fragment size for EAP methods that support
-#	fragmentation (e.g., EAP-TLS and EAP-PEAP). This value should be set
-#	small enough to make the EAP messages fit in MTU of the network
-#	interface used for EAPOL. The default value is suitable for most
-#	cases.
-#
-# EAP-PSK variables:
-# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex format
-# nai: user NAI
-#
-# EAP-PAX variables:
-# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex format
-#
-# EAP-SAKE variables:
-# eappsk: 32-byte (256-bit, 64 hex digits) pre-shared key in hex format
-#	(this is concatenation of Root-Secret-A and Root-Secret-B)
-# nai: user NAI (PEERID)
-#
-# EAP-GPSK variables:
-# eappsk: Pre-shared key in hex format (at least 128 bits, i.e., 32 hex digits)
-# nai: user NAI (ID_Client)
-#
-# EAP-FAST variables:
-# pac_file: File path for the PAC entries. wpa_supplicant will need to be able
-#	to create this file and write updates to it when PAC is being
-#	provisioned or refreshed. Full path to the file should be used since
-#	working directory may change when wpa_supplicant is run in the
-#	background. Alternatively, a named configuration blob can be used by
-#	setting this to blob://<blob name>
-# phase1: fast_provisioning=1 option enables in-line provisioning of EAP-FAST
-#	credentials (PAC)
-#
-# wpa_supplicant supports number of "EAP workarounds" to work around
-# interoperability issues with incorrectly behaving authentication servers.
-# These are enabled by default because some of the issues are present in large
-# number of authentication servers. Strict EAP conformance mode can be
-# configured by disabling workarounds with eap_workaround=0.
-
-# Example blocks:
-
-# Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers
-network={
-	ssid="simple"
-	psk="very secret passphrase"
-	priority=5
-}
-
-# Same as previous, but request SSID-specific scanning (for APs that reject
-# broadcast SSID)
-network={
-	ssid="second ssid"
-	scan_ssid=1
-	psk="very secret passphrase"
-	priority=2
-}
-
-# Only WPA-PSK is used. Any valid cipher combination is accepted.
-network={
-	ssid="example"
-	proto=WPA
-	key_mgmt=WPA-PSK
-	pairwise=CCMP TKIP
-	group=CCMP TKIP WEP104 WEP40
-	psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
-	priority=2
-}
-
-# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that used WEP104
-# or WEP40 as the group cipher will not be accepted.
-network={
-	ssid="example"
-	proto=RSN
-	key_mgmt=WPA-EAP
-	pairwise=CCMP TKIP
-	group=CCMP TKIP
-	eap=TLS
-	identity="user@example.com"
-	ca_cert="/etc/cert/ca.pem"
-	client_cert="/etc/cert/user.pem"
-	private_key="/etc/cert/user.prv"
-	private_key_passwd="password"
-	priority=1
-}
-
-# EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use the new peaplabel
-# (e.g., Radiator)
-network={
-	ssid="example"
-	key_mgmt=WPA-EAP
-	eap=PEAP
-	identity="user@example.com"
-	password="foobar"
-	ca_cert="/etc/cert/ca.pem"
-	phase1="peaplabel=1"
-	phase2="auth=MSCHAPV2"
-	priority=10
-}
-
-# EAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity for the
-# unencrypted use. Real identity is sent only within an encrypted TLS tunnel.
-network={
-	ssid="example"
-	key_mgmt=WPA-EAP
-	eap=TTLS
-	identity="user@example.com"
-	anonymous_identity="anonymous@example.com"
-	password="foobar"
-	ca_cert="/etc/cert/ca.pem"
-	priority=2
-}
-
-# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the unencrypted
-# use. Real identity is sent only within an encrypted TLS tunnel.
-network={
-	ssid="example"
-	key_mgmt=WPA-EAP
-	eap=TTLS
-	identity="user@example.com"
-	anonymous_identity="anonymous@example.com"
-	password="foobar"
-	ca_cert="/etc/cert/ca.pem"
-	phase2="auth=MSCHAPV2"
-}
-
-# WPA-EAP, EAP-TTLS with different CA certificate used for outer and inner
-# authentication.
-network={
-	ssid="example"
-	key_mgmt=WPA-EAP
-	eap=TTLS
-	# Phase1 / outer authentication
-	anonymous_identity="anonymous@example.com"
-	ca_cert="/etc/cert/ca.pem"
-	# Phase 2 / inner authentication
-	phase2="autheap=TLS"
-	ca_cert2="/etc/cert/ca2.pem"
-	client_cert2="/etc/cer/user.pem"
-	private_key2="/etc/cer/user.prv"
-	private_key2_passwd="password"
-	priority=2
-}
-
-# Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted as pairwise and
-# group cipher.
-network={
-	ssid="example"
-	bssid=00:11:22:33:44:55
-	proto=WPA RSN
-	key_mgmt=WPA-PSK WPA-EAP
-	pairwise=CCMP
-	group=CCMP
-	psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
-}
-
-# Special characters in SSID, so use hex string. Default to WPA-PSK, WPA-EAP
-# and all valid ciphers.
-network={
-	ssid=00010203
-	psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
-}
-
-
-# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no WPA) using
-# EAP-TLS for authentication and key generation; require both unicast and
-# broadcast WEP keys.
-network={
-	ssid="1x-test"
-	key_mgmt=IEEE8021X
-	eap=TLS
-	identity="user@example.com"
-	ca_cert="/etc/cert/ca.pem"
-	client_cert="/etc/cert/user.pem"
-	private_key="/etc/cert/user.prv"
-	private_key_passwd="password"
-	eapol_flags=3
-}
-
-
-# LEAP with dynamic WEP keys
-network={
-	ssid="leap-example"
-	key_mgmt=IEEE8021X
-	eap=LEAP
-	identity="user"
-	password="foobar"
-}
-
-# Plaintext connection (no WPA, no IEEE 802.1X)
-network={
-	ssid="plaintext-test"
-	key_mgmt=NONE
-}
-
-
-# Shared WEP key connection (no WPA, no IEEE 802.1X)
-network={
-	ssid="static-wep-test"
-	key_mgmt=NONE
-	wep_key0="abcde"
-	wep_key1=0102030405
-	wep_key2="1234567890123"
-	wep_tx_keyidx=0
-	priority=5
-}
-
-
-# Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared Key
-# IEEE 802.11 authentication
-network={
-	ssid="static-wep-test2"
-	key_mgmt=NONE
-	wep_key0="abcde"
-	wep_key1=0102030405
-	wep_key2="1234567890123"
-	wep_tx_keyidx=0
-	priority=5
-	auth_alg=SHARED
-}
-
-
-# IBSS/ad-hoc network with WPA-None/TKIP.
-network={
-	ssid="test adhoc"
-	mode=1
-	proto=WPA
-	key_mgmt=WPA-NONE
-	pairwise=NONE
-	group=TKIP
-	psk="secret passphrase"
-}
-
-
-# Catch all example that allows more or less all configuration modes
-network={
-	ssid="example"
-	scan_ssid=1
-	key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
-	pairwise=CCMP TKIP
-	group=CCMP TKIP WEP104 WEP40
-	psk="very secret passphrase"
-	eap=TTLS PEAP TLS
-	identity="user@example.com"
-	password="foobar"
-	ca_cert="/etc/cert/ca.pem"
-	client_cert="/etc/cert/user.pem"
-	private_key="/etc/cert/user.prv"
-	private_key_passwd="password"
-	phase1="peaplabel=0"
-}
-
-# Example of EAP-TLS with smartcard (openssl engine)
-network={
-	ssid="example"
-	key_mgmt=WPA-EAP
-	eap=TLS
-	proto=RSN
-	pairwise=CCMP TKIP
-	group=CCMP TKIP
-	identity="user@example.com"
-	ca_cert="/etc/cert/ca.pem"
-	client_cert="/etc/cert/user.pem"
-
-	engine=1
-
-	# The engine configured here must be available. Look at
-	# OpenSSL engine support in the global section.
-	# The key available through the engine must be the private key
-	# matching the client certificate configured above.
-
-	# use the opensc engine
-	#engine_id="opensc"
-	#key_id="45"
-
-	# use the pkcs11 engine
-	engine_id="pkcs11"
-	key_id="id_45"
-
-	# Optional PIN configuration; this can be left out and PIN will be
-	# asked through the control interface
-	pin="1234"
-}
-
-# Example configuration showing how to use an inlined blob as a CA certificate
-# data instead of using external file
-network={
-	ssid="example"
-	key_mgmt=WPA-EAP
-	eap=TTLS
-	identity="user@example.com"
-	anonymous_identity="anonymous@example.com"
-	password="foobar"
-	ca_cert="blob://exampleblob"
-	priority=20
-}
-
-blob-base64-exampleblob={
-SGVsbG8gV29ybGQhCg==
-}
-
-
-# Wildcard match for SSID (plaintext APs only). This example select any
-# open AP regardless of its SSID.
-network={
-	key_mgmt=NONE
-}
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf-sane b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf-sane
deleted file mode 100644
index c91ffe0..0000000
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf-sane
+++ /dev/null
@@ -1,7 +0,0 @@
-ctrl_interface=/var/run/wpa_supplicant
-ctrl_interface_group=0
-update_config=1
-
-network={
-        key_mgmt=NONE
-}
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.inc
deleted file mode 100644
index 721a4d9..0000000
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.inc
+++ /dev/null
@@ -1,83 +0,0 @@
-DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
-HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
-BUGTRACKER = "http://hostap.epitest.fi/bugz/"
-SECTION = "network"
-LICENSE = "GPLv2 | BSD"
-LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
-                    file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
-                    file://wpa_supplicant.c;beginline=1;endline=17;md5=1eb88410f8cc9b47f077c69b772ec0e2"
-DEPENDS = "gnutls dbus"
-RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
-
-SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
-           file://defconfig-0.6.0-gnutls \
-           file://defaults-sane \
-           file://wpa-supplicant.sh \
-           file://wpa_supplicant.conf \
-           file://wpa_supplicant.conf-sane \
-           file://99_wpa_supplicant"
-
-S = "${WORKDIR}/wpa_supplicant-${PV}/wpa_supplicant"
-
-PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
-FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
-FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
-
-do_configure () {
-	install -m 0755 ${WORKDIR}/defconfig-0.6.0-gnutls .config
-}
-
-export EXTRA_CFLAGS = "${CFLAGS}"
-do_compile () {
-	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
-	oe_runmake
-}
-
-do_install () {
-	install -d ${D}${sbindir}
-	install -m 755 wpa_supplicant ${D}${sbindir}
-	install -m 755 wpa_passphrase ${D}${sbindir}
-	install -m 755 wpa_cli        ${D}${sbindir}
-
-	install -d ${D}${docdir}/wpa_supplicant
-	install -m 644 README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant
-
-	install -d ${D}${sysconfdir}/default
-	install -m 600 ${WORKDIR}/defaults-sane ${D}${sysconfdir}/default/wpa
-	install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf
-
-	install -d ${D}${sysconfdir}/network/if-pre-up.d/
-	install -d ${D}${sysconfdir}/network/if-post-down.d/
-	install -d ${D}${sysconfdir}/network/if-down.d/
-	install -m 644 ${WORKDIR}/wpa_supplicant.conf ${D}${sysconfdir}
-	install -m 755 ${WORKDIR}/wpa-supplicant.sh ${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant
-	cd ${D}${sysconfdir}/network/ && \
-	ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
-
-	install -d ${D}/${sysconfdir}/dbus-1/system.d
-	install -m 644 ${S}/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
-
-	install -d ${D}/etc/default/volatiles
-	install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
-
-	install -d ${D}/${datadir}/dbus-1/system-services
-	sed -i -e s:${base_sbindir}:${sbindir}:g ${S}/dbus-wpa_supplicant.service
-	install -m 644 ${S}/dbus-wpa_supplicant.service ${D}/${datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
-}
-
-pkg_postinst_wpa-supplicant () {
-	# can't do this offline
-	if [ "x$D" != "x" ]; then
-		exit 1
-	fi
-
-	/etc/init.d/populate-volatile.sh update
-
-	DBUSPID=`pidof dbus-daemon`
-
-	if [ "x$DBUSPID" != "x" ]; then
-		/etc/init.d/dbus-1 reload
-	fi
-}
-
-FILES_${PN} += "${datadir}/dbus-1/system-services/*"
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.6.10.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.6.10.bb
deleted file mode 100644
index 0dff55a..0000000
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.6.10.bb
+++ /dev/null
@@ -1,4 +0,0 @@
-require wpa-supplicant-0.6.inc
-
-PE = "1"
-PR = "r0"
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 4/5] ofono: add 0.42 version which works OK for Ericsson 3G module.
  2011-06-07  8:52 [PATCH 0/5] 3G network support y
                   ` (2 preceding siblings ...)
  2011-06-07  8:52 ` [PATCH 3/5] wpa-supplicant: remove the 0.6.10 version y
@ 2011-06-07  8:52 ` y
  2011-06-07  8:52 ` [PATCH 5/5] connman-gnome: Add 3G configuration support y
  2011-06-07  9:10   ` Koen Kooi
  5 siblings, 0 replies; 13+ messages in thread
From: y @ 2011-06-07  8:52 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

We met ofonod crash after ofono-0.43 version. Thus import 0.42 version
to enable the 3G feature.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/conf/distro/include/default-versions.inc |    1 +
 meta/recipes-connectivity/ofono/ofono.inc     |    2 ++
 meta/recipes-connectivity/ofono/ofono_0.42.bb |   13 +++++++++++++
 3 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-connectivity/ofono/ofono_0.42.bb

diff --git a/meta/conf/distro/include/default-versions.inc b/meta/conf/distro/include/default-versions.inc
index 0abbd8f..f29ee12 100644
--- a/meta/conf/distro/include/default-versions.inc
+++ b/meta/conf/distro/include/default-versions.inc
@@ -13,6 +13,7 @@ PREFERRED_VERSION_python-native ?= "2.6.6"
 # Force the older version of liberation-fonts until we fix the fontforge issue
 PREFERRED_VERSION_liberation-fonts ?= "1.04"
 
+PREFERRED_VERSION_ofono ?= "0.42"
 
 
 
diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc
index ee3bc3e..4fc969c 100644
--- a/meta/recipes-connectivity/ofono/ofono.inc
+++ b/meta/recipes-connectivity/ofono/ofono.inc
@@ -15,5 +15,7 @@ INITSCRIPT_PARAMS = "defaults 22"
 do_install_append() {
   install -d ${D}${sysconfdir}/init.d/
   install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
+  install -d ${D}${sysconfdir}/udev/rules.d/
+  install -m 0644 ${S}/plugins/97-ofono.rules ${D}${sysconfdir}/udev/rules.d/
 }
 
diff --git a/meta/recipes-connectivity/ofono/ofono_0.42.bb b/meta/recipes-connectivity/ofono/ofono_0.42.bb
new file mode 100644
index 0000000..defea0a
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono_0.42.bb
@@ -0,0 +1,13 @@
+require ofono.inc
+
+PR = "r0"
+
+SRC_URI  = "${KERNELORG_MIRROR}/linux/network/ofono/${P}.tar.bz2 \
+	          file://ofono"
+
+EXTRA_OECONF += "\
+  --enable-test \
+"
+
+SRC_URI[md5sum] = "e3ccf43a287153eed25f8dd75e7c6d18"
+SRC_URI[sha256sum] = "5b6f78cbe218fbc5c84401cd9d64b3204529e98822f959a9b2aae34b538076af"
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 5/5] connman-gnome: Add 3G configuration support
  2011-06-07  8:52 [PATCH 0/5] 3G network support y
                   ` (3 preceding siblings ...)
  2011-06-07  8:52 ` [PATCH 4/5] ofono: add 0.42 version which works OK for Ericsson 3G module y
@ 2011-06-07  8:52 ` y
  2011-06-07  9:10   ` Koen Kooi
  5 siblings, 0 replies; 13+ messages in thread
From: y @ 2011-06-07  8:52 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

Apply 3g.patch which add cellular config option in connman-gnome.
Remove all other patches since they have been accepted in upstream.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 .../connman/connman-gnome/3g.patch                 |  505 +++
 .../connman-gnome/applet_menu_popup_fix.patch      |   19 -
 .../connman/connman-gnome/connman-gnome.patch      | 4162 --------------------
 .../remove-connman-property-desktop-file.patch     |   42 -
 .../connman-gnome/service_name_update.patch        |   36 -
 .../{connman-gnome_0.5.bb => connman-gnome_git.bb} |   17 +-
 6 files changed, 515 insertions(+), 4266 deletions(-)
 create mode 100644 meta/recipes-connectivity/connman/connman-gnome/3g.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/applet_menu_popup_fix.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/connman-gnome.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/remove-connman-property-desktop-file.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/service_name_update.patch
 rename meta/recipes-connectivity/connman/{connman-gnome_0.5.bb => connman-gnome_git.bb} (72%)

diff --git a/meta/recipes-connectivity/connman/connman-gnome/3g.patch b/meta/recipes-connectivity/connman/connman-gnome/3g.patch
new file mode 100644
index 0000000..c73c1ea
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman-gnome/3g.patch
@@ -0,0 +1,505 @@
+commit 15852e826b0b47f577718ada4b68b63515387f4d
+Author: dongxiao <dongxiao@dongxiao-osel.(none)>
+Date:   Wed Jun 1 14:56:16 2011 +0800
+
+    connman-gnome: Add cellular network config option.
+    
+    Add cellular network config option in connman-gnome.
+    
+    Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
+
+diff --git a/common/connman-client.c b/common/connman-client.c
+index e907cc2..d6be363 100644
+--- a/common/connman-client.c
++++ b/common/connman-client.c
+@@ -112,9 +112,10 @@ static void connman_client_init(ConnmanClient *client)
+ 				G_TYPE_STRING,  /* address */
+ 				G_TYPE_STRING,  /* netmask */
+ 				G_TYPE_STRING,  /* gateway */
+-				G_TYPE_BOOLEAN, /* gateway */
+-				G_TYPE_BOOLEAN, /* gateway */
+-				G_TYPE_BOOLEAN);/* gateway */
++				G_TYPE_BOOLEAN, /* ethernet enabled */
++				G_TYPE_BOOLEAN, /* wifi enabled */
++				G_TYPE_BOOLEAN, /* cellular enabled */
++				G_TYPE_BOOLEAN);/* offline */
+ 
+ 	g_object_set_data(G_OBJECT(priv->store),
+ 					"State", g_strdup("unavailable"));
+@@ -218,6 +219,7 @@ static gboolean device_filter(GtkTreeModel *model,
+ 	switch (type) {
+ 	case CONNMAN_TYPE_LABEL_ETHERNET:
+ 	case CONNMAN_TYPE_LABEL_WIFI:
++	case CONNMAN_TYPE_LABEL_CELLULAR:
+ 	case CONNMAN_TYPE_SYSCONFIG:
+ 		return TRUE;
+ 	}
+diff --git a/common/connman-client.h b/common/connman-client.h
+index 37e86d0..15fa098 100644
+--- a/common/connman-client.h
++++ b/common/connman-client.h
+@@ -117,6 +117,7 @@ enum {
+ 
+ 	CONNMAN_COLUMN_ETHERNET_ENABLED,/* G_TYPE_STRING  */
+ 	CONNMAN_COLUMN_WIFI_ENABLED,	/* G_TYPE_STRING  */
++	CONNMAN_COLUMN_CELLULAR_ENABLED,/* G_TYPE_STRING  */
+ 	CONNMAN_COLUMN_OFFLINEMODE,	/* G_TYPE_STRING  */
+ 
+ 	_CONNMAN_NUM_COLUMNS
+@@ -132,6 +133,7 @@ enum {
+ 
+ 	CONNMAN_TYPE_LABEL_ETHERNET,
+ 	CONNMAN_TYPE_LABEL_WIFI,
++	CONNMAN_TYPE_LABEL_CELLULAR,
+ 	CONNMAN_TYPE_SYSCONFIG,
+ 
+ 	_CONNMAN_NUM_TYPE,
+diff --git a/common/connman-dbus.c b/common/connman-dbus.c
+index b5a635c..0f4e1db 100644
+--- a/common/connman-dbus.c
++++ b/common/connman-dbus.c
+@@ -208,6 +208,8 @@ static const gchar *type2icon(guint type)
+ 	case CONNMAN_TYPE_WIFI:
+ 	case CONNMAN_TYPE_WIMAX:
+ 		return "network-wireless";
++	case CONNMAN_TYPE_CELLULAR:
++		return "network-cellular";
+ 	case CONNMAN_TYPE_BLUETOOTH:
+ 		return "bluetooth";
+ 	}
+@@ -220,6 +222,7 @@ static void enabled_technologies_changed(GtkTreeStore *store, GValue *value)
+ 	GtkTreeIter iter;
+ 	gboolean ethernet_enabled_prev, ethernet_enabled = FALSE;
+ 	gboolean wifi_enabled_prev, wifi_enabled = FALSE;
++	gboolean cellular_enabled_prev, cellular_enabled = FALSE;
+ 	gchar **tech = g_value_get_boxed (value);
+ 	guint i;
+ 
+@@ -227,10 +230,13 @@ static void enabled_technologies_changed(GtkTreeStore *store, GValue *value)
+ 		return;
+ 
+ 	for (i = 0; i < g_strv_length(tech); i++) {
++		DBG("technology: %s", *(tech+i));
+ 		if (g_str_equal("ethernet", *(tech + i)))
+ 			ethernet_enabled = TRUE;
+ 		else if (g_str_equal ("wifi", *(tech + i)))
+ 			wifi_enabled = TRUE;
++		else if (g_str_equal ("cellular", *(tech + i)))
++			cellular_enabled = TRUE;
+ 	}
+ 
+ 	get_iter_from_type(store, &iter, CONNMAN_TYPE_LABEL_ETHERNET);
+@@ -246,6 +252,13 @@ static void enabled_technologies_changed(GtkTreeStore *store, GValue *value)
+ 	if (wifi_enabled_prev != wifi_enabled)
+ 		gtk_tree_store_set(store, &iter,
+ 					CONNMAN_COLUMN_WIFI_ENABLED, wifi_enabled, -1);
++
++	get_iter_from_type(store, &iter, CONNMAN_TYPE_LABEL_CELLULAR);
++	gtk_tree_model_get(GTK_TREE_MODEL(store), &iter,
++			CONNMAN_COLUMN_CELLULAR_ENABLED, &cellular_enabled_prev, -1);
++	if (cellular_enabled_prev != cellular_enabled)
++		gtk_tree_store_set(store, &iter,
++					CONNMAN_COLUMN_CELLULAR_ENABLED, cellular_enabled, -1);
+ }
+ 
+ static void enabled_technologies_properties(GtkTreeStore *store, DBusGProxy *proxy, GValue *value)
+@@ -253,14 +266,18 @@ static void enabled_technologies_properties(GtkTreeStore *store, DBusGProxy *pro
+ 	GtkTreeIter iter;
+ 	gboolean ethernet_enabled = FALSE;
+ 	gboolean wifi_enabled = FALSE;
++	gboolean cellular_enabled = FALSE;
+ 	gchar **tech = g_value_get_boxed (value);
+ 	guint i;
+ 
+ 	for (i = 0; i < g_strv_length (tech); i++) {
++		DBG("technology: %s", *(tech+i));
+ 		if (g_str_equal("ethernet", *(tech + i)))
+ 			ethernet_enabled = TRUE;
+ 		else if (g_str_equal ("wifi", *(tech + i)))
+ 			wifi_enabled = TRUE;
++		else if (g_str_equal ("cellular", *(tech + i)))
++			cellular_enabled = TRUE;
+ 	}
+ 
+ 	if (get_iter_from_type(store, &iter, CONNMAN_TYPE_LABEL_ETHERNET) == FALSE)
+@@ -280,6 +297,15 @@ static void enabled_technologies_properties(GtkTreeStore *store, DBusGProxy *pro
+ 			CONNMAN_COLUMN_WIFI_ENABLED, wifi_enabled,
+ 			CONNMAN_COLUMN_TYPE, CONNMAN_TYPE_LABEL_WIFI,
+ 			-1);
++
++	if (get_iter_from_type(store, &iter, CONNMAN_TYPE_LABEL_CELLULAR) == FALSE)
++		gtk_tree_store_append(store, &iter, NULL);
++
++	gtk_tree_store_set(store, &iter,
++			CONNMAN_COLUMN_PROXY, proxy,
++			CONNMAN_COLUMN_CELLULAR_ENABLED, cellular_enabled,
++			CONNMAN_COLUMN_TYPE, CONNMAN_TYPE_LABEL_CELLULAR,
++			-1);
+ }
+ 
+ static void offline_mode_changed(GtkTreeStore *store, GValue *value)
+@@ -497,6 +523,9 @@ static void service_properties(DBusGProxy *proxy, GHashTable *hash,
+ 		case CONNMAN_TYPE_WIFI:
+ 			label_type = CONNMAN_TYPE_LABEL_WIFI;
+ 			break;
++		case CONNMAN_TYPE_CELLULAR:
++			label_type = CONNMAN_TYPE_LABEL_CELLULAR;
++			break;
+ 		default:
+ 			label_type = CONNMAN_TYPE_UNKNOWN;
+ 			break;
+diff --git a/icons/connman-type-cellular.png b/icons/connman-type-cellular.png
+new file mode 100644
+index 0000000..386abd5
+Binary files /dev/null and b/icons/connman-type-cellular.png differ
+diff --git a/properties/Makefile.am b/properties/Makefile.am
+index fc1b8c6..30ae442 100644
+--- a/properties/Makefile.am
++++ b/properties/Makefile.am
+@@ -1,7 +1,7 @@
+ 
+ bin_PROGRAMS = connman-properties
+ 
+-connman_properties_SOURCES = main.c advanced.h ethernet.c wifi.c
++connman_properties_SOURCES = main.c advanced.h ethernet.c wifi.c cellular.c
+ 
+ connman_properties_LDADD = $(top_builddir)/common/libcommon.a \
+ 						@GTK_LIBS@ @DBUS_LIBS@
+diff --git a/properties/advanced.h b/properties/advanced.h
+index 79a1c3c..d8f4117 100644
+--- a/properties/advanced.h
++++ b/properties/advanced.h
+@@ -59,10 +59,18 @@ struct config_data {
+ 		GtkWidget *disconnect;
+ 	} wifi;
+ 
++	struct {
++		GtkWidget *name;
++		GtkWidget *strength;
++		GtkWidget *connect_info;
++		GtkWidget *connect;
++		GtkWidget *disconnect;
++	} cellular;
++
+ 	GtkWidget *ethernet_button;
+ 	GtkWidget *wifi_button;
+-
+ 	GtkWidget *scan_button;
++	GtkWidget *cellular_button;
+ 	GtkWidget *offline_button;
+ };
+ 
+@@ -88,8 +96,11 @@ void update_ethernet_ipv4(struct config_data *data, guint policy);
+ void add_wifi_service(GtkWidget *mainbox, GtkTreeIter *iter, struct config_data *data);
+ void update_wifi_policy(struct config_data *data, guint policy);
+ 
++void add_cellular_service(GtkWidget *mainbox, GtkTreeIter *iter, struct config_data *data);
+ void add_ethernet_switch_button(GtkWidget *mainbox, GtkTreeIter *iter,
+ 				struct config_data *data);
+ 
+ void add_wifi_switch_button(GtkWidget *mainbox, GtkTreeIter *iter,
+ 				struct config_data *data);
++void add_cellular_switch_button(GtkWidget *mainbox, GtkTreeIter *iter,
++				struct config_data *data);
+diff --git a/properties/cellular.c b/properties/cellular.c
+new file mode 100644
+index 0000000..7bbfb89
+--- /dev/null
++++ b/properties/cellular.c
+@@ -0,0 +1,175 @@
++/*
++ *
++ *  Connection Manager
++ *
++ *  Copyright (C) 2011  Intel Corporation. All rights reserved.
++ *
++ *  This program is free software; you can redistribute it and/or modify
++ *  it under the terms of the GNU General Public License version 2 as
++ *  published by the Free Software Foundation.
++ *
++ *  This program is distributed in the hope that it will be useful,
++ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
++ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ *  GNU General Public License for more details.
++ *
++ *  You should have received a copy of the GNU General Public License
++ *  along with this program; if not, write to the Free Software
++ *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
++ *
++ */
++
++#ifdef HAVE_CONFIG_H
++#include <config.h>
++#endif
++
++#include <dbus/dbus-glib.h>
++#include <glib/gi18n.h>
++#include <gtk/gtk.h>
++
++#include "connman-client.h"
++
++#include "advanced.h"
++
++static void connect_reply_cb(DBusGProxy *proxy, GError *error,
++		gpointer user_data)
++{
++	if (error)
++		g_error_free(error);
++}
++
++static void connect_callback(GtkWidget *editable, gpointer user_data)
++{
++	struct config_data *data = user_data;
++
++	connman_client_connect_async(data->client, data->device, connect_reply_cb, data);
++}
++
++
++static void disconnect_callback(GtkWidget *editable, gpointer user_data)
++{
++	struct config_data *data = user_data;
++
++	connman_client_disconnect(data->client, data->device);
++}
++
++static void switch_callback(GtkWidget *editable, gpointer user_data)
++{
++	struct config_data *data = user_data;
++	const gchar *label = gtk_button_get_label(GTK_BUTTON(data->cellular_button));
++
++	if (g_str_equal(label, "Disable"))
++		connman_client_disable_technology(data->client, data->device, "cellular");
++	else
++		connman_client_enable_technology(data->client, data->device, "cellular");
++}
++
++void add_cellular_switch_button(GtkWidget *mainbox, GtkTreeIter *iter,
++				struct config_data *data)
++{
++	GtkWidget *vbox;
++	GtkWidget *table;
++	GtkWidget *label;
++	GtkWidget *buttonbox;
++	GtkWidget *button;
++	gboolean cellular_enabled;
++
++	gtk_tree_model_get(data->model, iter,
++			CONNMAN_COLUMN_CELLULAR_ENABLED, &cellular_enabled,
++			-1);
++
++	vbox = gtk_vbox_new(TRUE, 0);
++	gtk_container_set_border_width(GTK_CONTAINER(vbox), 24);
++	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
++
++	table = gtk_table_new(1, 1, TRUE);
++	gtk_table_set_row_spacings(GTK_TABLE(table), 10);
++	gtk_table_set_col_spacings(GTK_TABLE(table), 10);
++	gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
++
++	label = gtk_label_new(_("Configure Cellular Networks."));
++	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
++
++	buttonbox = gtk_hbutton_box_new();
++	gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox), GTK_BUTTONBOX_CENTER);
++	gtk_box_pack_start(GTK_BOX(mainbox), buttonbox, FALSE, FALSE, 0);
++
++	button = gtk_button_new();
++	data->cellular_button = button;
++
++	if (cellular_enabled)
++		gtk_button_set_label(GTK_BUTTON(button), _("Disable"));
++	else
++		gtk_button_set_label(GTK_BUTTON(button), _("Enable"));
++
++	gtk_container_add(GTK_CONTAINER(buttonbox), button);
++	g_signal_connect(G_OBJECT(button), "clicked",
++			G_CALLBACK(switch_callback), data);
++}
++
++void add_cellular_service(GtkWidget *mainbox, GtkTreeIter *iter, struct config_data *data)
++{
++	GtkWidget *vbox;
++	GtkWidget *table;
++	GtkWidget *label;
++	GtkWidget *button;
++
++	const char *name, *icon, *state;
++	guint strength;
++
++	gtk_tree_model_get(data->model, iter,
++			CONNMAN_COLUMN_NAME, &name,
++			CONNMAN_COLUMN_ICON, &icon,
++			CONNMAN_COLUMN_STATE, &state,
++			CONNMAN_COLUMN_STRENGTH, &strength,
++			-1);
++
++	if (g_str_equal(state, "failure") == TRUE)
++		connman_client_remove(data->client, data->device);
++
++	vbox = gtk_vbox_new(TRUE, 0);
++	gtk_container_set_border_width(GTK_CONTAINER(vbox), 24);
++	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
++
++	table = gtk_table_new(4, 8, TRUE);
++	gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
++	data->table = table;
++
++	label = gtk_label_new(_("Access Point:"));
++	gtk_table_attach_defaults(GTK_TABLE(table), label, 3, 4, 0, 1);
++
++	label = gtk_label_new(_(name));
++	gtk_table_attach_defaults(GTK_TABLE(table), label, 4, 5, 0, 1);
++	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
++	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
++	data->cellular.name = label;
++
++	label = gtk_label_new(_(""));
++	gtk_table_attach_defaults(GTK_TABLE(table), label, 3, 5, 2, 3);
++	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
++	gtk_widget_hide(label);
++	data->cellular.connect_info = label;
++
++	button = gtk_button_new_with_label(_("Connect"));
++	gtk_table_attach_defaults(GTK_TABLE(table), button, 3, 5, 3, 4);
++	g_signal_connect(G_OBJECT(button), "clicked",
++			G_CALLBACK(connect_callback), data);
++	gtk_widget_set_no_show_all(button, TRUE);
++	data->cellular.connect = button;
++
++	button = gtk_button_new_with_label(_("Disconnect"));
++	gtk_table_attach_defaults(GTK_TABLE(table), button, 3, 5, 3, 4);
++	g_signal_connect(G_OBJECT(button), "clicked",
++			G_CALLBACK(disconnect_callback), data);
++	data->cellular.disconnect = button;
++	gtk_widget_set_no_show_all(button, TRUE);
++
++	if (g_str_equal(state, "failure") == TRUE
++			|| g_str_equal(state, "idle") == TRUE) {
++		gtk_widget_show(data->cellular.connect);
++		gtk_widget_hide(data->cellular.disconnect);
++	} else {
++		gtk_widget_hide(data->cellular.connect);
++		gtk_widget_show(data->cellular.disconnect);
++	}
++}
+diff --git a/properties/main.c b/properties/main.c
+index a09c721..ec36aef 100644
+--- a/properties/main.c
++++ b/properties/main.c
+@@ -42,6 +42,7 @@ static void status_update(GtkTreeModel *model, GtkTreePath  *path,
+ 	const char *name = NULL, *_name = NULL, *state = NULL;
+ 	gboolean ethernet_enabled;
+ 	gboolean wifi_enabled;
++	gboolean cellular_enabled;
+ 	gboolean offline_mode;
+ 
+ 	gtk_tree_model_get(model, iter,
+@@ -50,6 +51,7 @@ static void status_update(GtkTreeModel *model, GtkTreePath  *path,
+ 			CONNMAN_COLUMN_TYPE, &type,
+ 			CONNMAN_COLUMN_ETHERNET_ENABLED, &ethernet_enabled,
+ 			CONNMAN_COLUMN_WIFI_ENABLED, &wifi_enabled,
++			CONNMAN_COLUMN_CELLULAR_ENABLED, &cellular_enabled,
+ 			CONNMAN_COLUMN_OFFLINEMODE, &offline_mode,
+ 			-1);
+ 
+@@ -75,6 +77,29 @@ static void status_update(GtkTreeModel *model, GtkTreePath  *path,
+ 			gtk_widget_hide(data->wifi.connect);
+ 			gtk_widget_show(data->wifi.disconnect);
+ 		}
++	} else if (type == CONNMAN_TYPE_CELLULAR) {
++		if (data->cellular.name)
++			_name = gtk_label_get_text(GTK_LABEL(data->cellular.name));
++
++		if (!(name && _name && g_str_equal(name, _name)))
++			return;
++
++		if (g_str_equal(state, "failure") == TRUE) {
++			gtk_label_set_text(GTK_LABEL(data->cellular.connect_info),
++					_("connection failed"));
++			gtk_widget_show(data->cellular.connect_info);
++			gtk_widget_show(data->cellular.connect);
++			gtk_widget_hide(data->cellular.disconnect);
++		} else if (g_str_equal(state, "idle") == TRUE) {
++			gtk_widget_hide(data->cellular.connect_info);
++			gtk_widget_show(data->cellular.connect);
++			gtk_widget_hide(data->cellular.disconnect);
++		} else {
++			gtk_widget_hide(data->cellular.connect_info);
++			gtk_widget_hide(data->cellular.connect);
++			gtk_widget_show(data->cellular.disconnect);
++		}
++
+ 	} else if (type == CONNMAN_TYPE_LABEL_ETHERNET) {
+ 		if (!data->ethernet_button)
+ 			return;
+@@ -92,6 +117,13 @@ static void status_update(GtkTreeModel *model, GtkTreePath  *path,
+ 			gtk_button_set_label(GTK_BUTTON(data->wifi_button), _("Enable"));
+ 			gtk_widget_set_sensitive(data->scan_button, 0);
+ 		}
++	} else if (type == CONNMAN_TYPE_LABEL_CELLULAR) {
++		if (!data->cellular_button)
++			return;
++		if (cellular_enabled)
++			gtk_button_set_label(GTK_BUTTON(data->cellular_button), _("Disable"));
++		else
++			gtk_button_set_label(GTK_BUTTON(data->cellular_button), _("Enable"));
+ 	} else if (type == CONNMAN_TYPE_SYSCONFIG) {
+ 		if (!data->offline_button)
+ 			return;
+@@ -100,7 +132,6 @@ static void status_update(GtkTreeModel *model, GtkTreePath  *path,
+ 		else
+ 			gtk_button_set_label(GTK_BUTTON(data->offline_button), _("OfflineMode"));
+ 	}
+-
+ }
+ 
+ static void set_offline_callback(GtkWidget *button, gpointer user_data)
+@@ -207,12 +238,18 @@ static struct config_data *create_config(GtkTreeModel *model,
+ 	case CONNMAN_TYPE_WIFI:
+ 		add_wifi_service(mainbox, iter, data);
+ 		break;
++	case CONNMAN_TYPE_CELLULAR:
++		add_cellular_service(mainbox, iter, data);
++		break;
+ 	case CONNMAN_TYPE_LABEL_ETHERNET:
+ 		add_ethernet_switch_button(mainbox, iter, data);
+ 		break;
+ 	case CONNMAN_TYPE_LABEL_WIFI:
+ 		add_wifi_switch_button(mainbox, iter, data);
+ 		break;
++	case CONNMAN_TYPE_LABEL_CELLULAR:
++		add_cellular_switch_button(mainbox, iter, data);
++		break;
+ 	case CONNMAN_TYPE_SYSCONFIG:
+ 		add_system_config(mainbox, iter, data);
+ 		break;
+@@ -295,6 +332,7 @@ static void device_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
+ 		markup = g_strdup_printf("  %s\n", title);
+ 		break;
+ 	case CONNMAN_TYPE_WIFI:
++	case CONNMAN_TYPE_CELLULAR:
+ 		/* Show the AP name */
+ 		title = N_(name);
+ 		if (g_str_equal(state, "association") == TRUE)
+@@ -324,6 +362,10 @@ static void device_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
+ 		title = N_("Wireless Networks");
+ 		markup = g_strdup_printf("<b>\n%s\n</b>", title);
+ 		break;
++	case CONNMAN_TYPE_LABEL_CELLULAR:
++		title = N_("Cellular Networks");
++		markup = g_strdup_printf("<b>\n%s\n</b>", title);
++		break;
+ 	case CONNMAN_TYPE_SYSCONFIG:
+ 		title = N_("System Configuration");
+ 		markup = g_strdup_printf("<b>\n%s\n</b>", title);
+@@ -362,6 +404,10 @@ static void type_to_icon(GtkTreeViewColumn *column, GtkCellRenderer *cell,
+ 		g_object_set(cell, "icon-name", "network-wireless",
+ 						"stock-size", 4, NULL);
+ 		break;
++	case CONNMAN_TYPE_LABEL_CELLULAR:
++		g_object_set(cell, "icon-name", "network-cellular",
++						"stock-size", 4, NULL);
++		break;
+ 	default:
+ 		g_object_set(cell, "icon-name", NULL, NULL);
+ 		break;
diff --git a/meta/recipes-connectivity/connman/connman-gnome/applet_menu_popup_fix.patch b/meta/recipes-connectivity/connman/connman-gnome/applet_menu_popup_fix.patch
deleted file mode 100644
index d34257b..0000000
--- a/meta/recipes-connectivity/connman/connman-gnome/applet_menu_popup_fix.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Even if all services are not available, we still need to let user have
-the ability to configure network, for example, online/offline, etc.
-Therefore enable the callback menu even when status is unavailable.
-
-Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
-
-diff --git a/applet/status.c b/applet/status.c
-index 13ec752..d817f22 100644
---- a/applet/status.c
-+++ b/applet/status.c
-@@ -231,8 +231,6 @@ void status_unavailable(void)
- {
- 	icon_animation_stop(animation);
- 
--	available = FALSE;
--
- 	gtk_status_icon_set_from_pixbuf(statusicon, pixbuf_notifier);
- 	gtk_status_icon_set_tooltip(statusicon,
- 				"Connection Manager daemon is not running");
diff --git a/meta/recipes-connectivity/connman/connman-gnome/connman-gnome.patch b/meta/recipes-connectivity/connman/connman-gnome/connman-gnome.patch
deleted file mode 100644
index 2fe8bb8..0000000
--- a/meta/recipes-connectivity/connman/connman-gnome/connman-gnome.patch
+++ /dev/null
@@ -1,4162 +0,0 @@
-connman-gnome: Change the code to fit recent connman
-
-The recent connman changes from "device" based to "service" based.
-Therefore most of the interaction protocol between connman and
-connman-gnome has changed. This commit uses the new dbus interface
-to interact with connman. With this change, connman-gnome could
-do wired and wireless interface configurations with latest connman.
-
-Besides, some UI is re-designed to be more neat and friendly to
-end user.
-
-Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
-
-diff --git a/applet/main.c b/applet/main.c
-index 2a9b36e..08d394c 100644
---- a/applet/main.c
-+++ b/applet/main.c
-@@ -98,279 +98,21 @@ static void settings_callback(GtkWidget *item, gpointer user_data)
- 		g_printerr("Couldn't execute command: %s\n", command);
- }
- 
--static void toggled_callback(GtkWidget *button, gpointer user_data)
--{
--	GtkWidget *entry = user_data;
--	gboolean mode;
--
--	mode = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button));
--
--	gtk_entry_set_visibility(GTK_ENTRY(entry), mode);
--}
--
--static void passphrase_dialog(const char *path, const char *name)
--{
--	GtkWidget *dialog;
--	GtkWidget *button;
--	GtkWidget *image;
--	GtkWidget *label;
--	GtkWidget *entry;
--	GtkWidget *table;
--	GtkWidget *vbox;
--
--	dialog = gtk_dialog_new();
--	gtk_window_set_title(GTK_WINDOW(dialog), _("Enter passphrase"));
--	gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
--	gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
--	gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE);
--	gtk_window_set_urgency_hint(GTK_WINDOW(dialog), TRUE);
--	gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE);
--
--	button = gtk_dialog_add_button(GTK_DIALOG(dialog),
--				GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT);
--	button = gtk_dialog_add_button(GTK_DIALOG(dialog),
--					GTK_STOCK_OK, GTK_RESPONSE_ACCEPT);
--	gtk_widget_grab_default(button);
--
--	table = gtk_table_new(5, 2, FALSE);
--	gtk_table_set_row_spacings(GTK_TABLE(table), 4);
--	gtk_table_set_col_spacings(GTK_TABLE(table), 20);
--	gtk_container_set_border_width(GTK_CONTAINER(table), 12);
--	gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), table);
--	image = gtk_image_new_from_icon_name(GTK_STOCK_DIALOG_AUTHENTICATION,
--							GTK_ICON_SIZE_DIALOG);
--	gtk_misc_set_alignment(GTK_MISC(image), 0.0, 0.0);
--	gtk_table_attach(GTK_TABLE(table), image, 0, 1, 0, 5,
--						GTK_SHRINK, GTK_FILL, 0, 0);
--	vbox = gtk_vbox_new(FALSE, 6);
--
--	label = gtk_label_new(_("Network requires input of a passphrase:"));
--	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
--	gtk_container_add(GTK_CONTAINER(vbox), label);
--	gtk_table_attach(GTK_TABLE(table), vbox, 1, 2, 0, 1,
--				GTK_EXPAND | GTK_FILL, GTK_SHRINK, 0, 0);
--
--	entry = gtk_entry_new();
--	gtk_entry_set_max_length(GTK_ENTRY(entry), 120);
--	gtk_entry_set_width_chars(GTK_ENTRY(entry), 20);
--	gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
--	gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE);
--	gtk_container_add(GTK_CONTAINER(vbox), entry);
--
--	button = gtk_check_button_new_with_label(_("Show input"));
--	gtk_container_add(GTK_CONTAINER(vbox), button);
--
--	g_signal_connect(G_OBJECT(button), "toggled",
--				G_CALLBACK(toggled_callback), entry);
--
--	button = gtk_check_button_new_with_label(_("Remember network"));
--	gtk_container_add(GTK_CONTAINER(vbox), button);
--
--	gtk_widget_show_all(dialog);
--
--	if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
--		const gchar *passphrase;
--		gboolean remember;
--
--		passphrase = gtk_entry_get_text(GTK_ENTRY(entry));
--		remember = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button));
--
--		connman_client_set_passphrase(client, path, passphrase);
--		connman_client_set_remember(client, path, remember);
--
--		status_prepare();
--		connman_client_connect(client, path);
--	}
--
--	gtk_widget_destroy(dialog);
--}
--
--static void activate_callback(GtkWidget *item, gpointer user_data)
--{
--	const gchar *path = user_data;
--	guint security;
--	gchar *passphrase;
--
--	security = connman_client_get_security(client, path);
--	if (security == CONNMAN_SECURITY_UNKNOWN)
--		return;
--
--	if (security == CONNMAN_SECURITY_NONE) {
--		status_prepare();
--		connman_client_connect(client, path);
--		return;
--	}
--
--	passphrase = connman_client_get_passphrase(client, path);
--	if (passphrase != NULL) {
--		g_free(passphrase);
--
--		status_prepare();
--		connman_client_connect(client, path);
--		return;
--	}
--
--	passphrase_dialog(path, NULL);
--}
--
--static void disconnect_callback(GtkWidget *item, gpointer user_data)
--{
--	connman_client_disconnect(client, NULL);
--}
--
--static GtkWidget *create_popupmenu(void)
--{
--	GtkWidget *menu;
--	GtkWidget *item;
--
--	menu = gtk_menu_new();
--
--	item = gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL);
--	g_signal_connect(item, "activate", G_CALLBACK(settings_callback), NULL);
--	gtk_widget_show(item);
--	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
--
--	item = gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, NULL);
--	g_signal_connect(item, "activate", G_CALLBACK(about_callback), NULL);
--	gtk_widget_show(item);
--	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
--
--	return menu;
--}
--
--static GtkWidget *append_menuitem(GtkMenu *menu, const char *ssid,
--					guint security, guint strength)
--{
--	GtkWidget *item;
--	GtkWidget *hbox;
--	GtkWidget *label;
--	GtkWidget *image;
--	GtkWidget *progress;
--
--	item = gtk_check_menu_item_new();
--	gtk_check_menu_item_set_draw_as_radio(GTK_CHECK_MENU_ITEM(item), TRUE);
--
--	hbox = gtk_hbox_new(FALSE, 6);
--	gtk_container_add(GTK_CONTAINER(item), hbox);
--	gtk_widget_show(hbox);
--
--	label = gtk_label_new(NULL);
--	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
--	gtk_label_set_text(GTK_LABEL(label), ssid);
--	gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0);
--	gtk_widget_show(label);
--
--	image = gtk_image_new_from_stock(GTK_STOCK_DIALOG_AUTHENTICATION,
--							GTK_ICON_SIZE_MENU);
--	gtk_misc_set_alignment(GTK_MISC(image), 1.0, 0.5);
--	if (security != CONNMAN_SECURITY_NONE) {
--		gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);
--		gtk_widget_show(image);
--	}
--
--	progress = gtk_progress_bar_new();
--	gtk_widget_set_size_request(progress, 100, -1);
--	gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress),
--						(double) strength / 100);
--	gtk_box_pack_end(GTK_BOX(hbox), progress, FALSE, TRUE, 0);
--	gtk_widget_show(progress);
--
--	gtk_widget_show(item);
--	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
--
--	return item;
--}
--
--static void enumerate_networks(GtkMenu *menu,
--				GtkTreeModel *model, GtkTreeIter *parent)
--{
--	GtkTreeIter iter;
--	gboolean cont;
--
--	cont = gtk_tree_model_iter_children(model, &iter, parent);
--
--	while (cont == TRUE) {
--		GtkWidget *item;
--		DBusGProxy *proxy;
--		guint strength, security;
--		gchar *name, *path;
--		gboolean inrange, connected;
--
--		gtk_tree_model_get(model, &iter,
--				CONNMAN_COLUMN_PROXY, &proxy,
--				CONNMAN_COLUMN_NAME, &name,
--				CONNMAN_COLUMN_INRANGE, &inrange,
--				CONNMAN_COLUMN_ENABLED, &connected,
--				CONNMAN_COLUMN_STRENGTH, &strength,
--				CONNMAN_COLUMN_SECURITY, &security, -1);
--
--		if (connected == TRUE || inrange == TRUE) {
--			item = append_menuitem(menu, name, security, strength);
--			gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item),
--								connected);
--
--			path = g_strdup(dbus_g_proxy_get_path(proxy));
--			g_signal_connect(item, "activate",
--					G_CALLBACK(activate_callback), path);
--		}
--
--		g_free(name);
--
--		cont = gtk_tree_model_iter_next(model, &iter);
--	}
--}
--
- static gboolean menu_callback(GtkMenu *menu)
- {
--	GtkTreeModel *model;
--	GtkTreeIter parent;
- 	GtkWidget *item;
--	gboolean cont;
--
--	connman_client_propose_scan(client, NULL);
--
--	model = connman_client_get_device_network_model(client);
--
--	cont = gtk_tree_model_get_iter_first(model, &parent);
--
--	while (cont == TRUE) {
--		guint type;
--		gchar *name;
--
--		gtk_tree_model_get(model, &parent,
--					CONNMAN_COLUMN_TYPE, &type,
--					CONNMAN_COLUMN_NAME, &name, -1);
--
--		switch (type) {
--		case CONNMAN_TYPE_WIFI:
--		case CONNMAN_TYPE_WIMAX:
--			enumerate_networks(menu, model, &parent);
--			break;
--		default:
--			break;
--		}
--
--		g_free(name);
--
--		cont = gtk_tree_model_iter_next(model, &parent);
--	}
--
--	g_object_unref(model);
- 
- 	item = gtk_separator_menu_item_new();
- 	gtk_widget_show(item);
- 	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
- 
--	item = gtk_menu_item_new_with_label(_("Disconnect Network"));
--	g_signal_connect(item, "activate",
--				G_CALLBACK(disconnect_callback), NULL);
-+	item = gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL);
-+	g_signal_connect(item, "activate", G_CALLBACK(settings_callback), NULL);
- 	gtk_widget_show(item);
- 	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
- 
--	item = gtk_menu_item_new_with_label(_("Join Other Network..."));
--	gtk_widget_set_sensitive(item, FALSE);
--	//g_signal_connect(item, "activate",
--	//			G_CALLBACK(join_callback), NULL);
-+	item = gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, NULL);
-+	g_signal_connect(item, "activate", G_CALLBACK(about_callback), NULL);
- 	gtk_widget_show(item);
- 	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
- 
-@@ -387,16 +129,17 @@ static void update_status(GtkTreeModel *model)
- 	cont = gtk_tree_model_get_iter_first(model, &iter);
- 
- 	while (cont == TRUE) {
--		gboolean enabled;
-+		gchar *state;
- 
- 		gtk_tree_model_get(model, &iter,
- 					CONNMAN_COLUMN_TYPE, &type,
- 					CONNMAN_COLUMN_STRENGTH, &strength,
--					CONNMAN_COLUMN_ENABLED, &enabled, -1);
-+					CONNMAN_COLUMN_STATE, &state, -1);
- 
- 		online = TRUE;
- 
--		if (enabled == TRUE)
-+		if ((type == CONNMAN_TYPE_ETHERNET && (g_str_equal(state, "idle") || g_str_equal(state, "online")))  ||
-+		    (type == CONNMAN_TYPE_WIFI && (g_str_equal(state, "ready") || g_str_equal(state, "online"))))
- 			break;
- 
- 		cont = gtk_tree_model_iter_next(model, &iter);
-@@ -453,7 +196,7 @@ int main(int argc, char *argv[])
- 
- 	g_set_application_name(_("Connection Manager"));
- 
--	status_init(menu_callback, create_popupmenu());
-+	status_init(menu_callback);
- 
- 	client = connman_client_new();
- 	model = connman_client_get_connection_model(client);
-diff --git a/applet/status.c b/applet/status.c
-index ef11bcc..13ec752 100644
---- a/applet/status.c
-+++ b/applet/status.c
-@@ -170,19 +170,6 @@ static void activate_callback(GObject *object, gpointer user_data)
- 			GTK_STATUS_ICON(object), 1, activate_time);
- }
- 
--static void popup_callback(GObject *object, guint button,
--				guint activate_time, gpointer user_data)
--{
--	GtkMenu *menu = user_data;
--
--	if (menu == NULL)
--		return;
--
--	gtk_menu_popup(menu, NULL, NULL,
--			gtk_status_icon_position_menu,
--			GTK_STATUS_ICON(object), button, activate_time);
--}
--
- static GtkIconTheme *icontheme;
- static IconAnimation *animation;
- static GdkPixbuf *pixbuf_notifier;
-@@ -190,7 +177,7 @@ static GdkPixbuf *pixbuf_none;
- static GdkPixbuf *pixbuf_wired;
- static GdkPixbuf *pixbuf_signal[5];
- 
--int status_init(StatusCallback activate, GtkWidget *popup)
-+int status_init(StatusCallback activate)
- {
- 	GdkScreen *screen;
- 
-@@ -219,9 +206,6 @@ int status_init(StatusCallback activate, GtkWidget *popup)
- 	g_signal_connect(statusicon, "activate",
- 				G_CALLBACK(activate_callback), activate);
- 
--	g_signal_connect(statusicon, "popup-menu",
--				G_CALLBACK(popup_callback), popup);
--
- 	return 0;
- }
- 
-@@ -292,8 +276,6 @@ void status_config(void)
- 
- static void set_ready(gint signal)
- {
--	int index;
--
- 	available = TRUE;
- 
- 	if (signal < 0) {
-@@ -302,12 +284,7 @@ static void set_ready(gint signal)
- 		return;
- 	}
- 
--	if (signal == 0)
--		index = 0;
--	else
--		index = 3;
--
--	gtk_status_icon_set_from_pixbuf(statusicon, pixbuf_signal[index]);
-+	gtk_status_icon_set_from_pixbuf(statusicon, pixbuf_signal[4]);
- 	gtk_status_icon_set_tooltip(statusicon, NULL);
- }
- 
-diff --git a/applet/status.h b/applet/status.h
-index 772a7b2..8a3c83c 100644
---- a/applet/status.h
-+++ b/applet/status.h
-@@ -21,7 +21,7 @@
- 
- typedef gboolean (* StatusCallback) (GtkMenu *menu);
- 
--int status_init(StatusCallback activate, GtkWidget *popup);
-+int status_init(StatusCallback activate);
- void status_cleanup(void);
- 
- void status_unavailable(void);
-diff --git a/common/Makefile.am b/common/Makefile.am
-index ff3a996..8d74a46 100644
---- a/common/Makefile.am
-+++ b/common/Makefile.am
-@@ -5,13 +5,6 @@ libcommon_a_SOURCES = connman-dbus.c connman-dbus.h \
- 				connman-client.h connman-client.c \
- 							instance.h instance.c
- 
--noinst_PROGRAMS = connman-demo test-client
--
--connman_demo_SOURCES = demo.c
--connman_demo_LDADD = libcommon.a @GTK_LIBS@ @DBUS_LIBS@
--
--test_client_LDADD = libcommon.a @GTK_LIBS@ @DBUS_LIBS@
--
- BUILT_SOURCES = marshal.h marshal.c \
- 			connman-dbus-glue.h \
- 				instance-glue.h
-diff --git a/common/connman-client.c b/common/connman-client.c
-index aad0a22..4f9cf64 100644
---- a/common/connman-client.c
-+++ b/common/connman-client.c
-@@ -98,13 +98,13 @@ static void connman_client_init(ConnmanClient *client)
- 
- 	priv->store = gtk_tree_store_new(_CONNMAN_NUM_COLUMNS, G_TYPE_OBJECT,
- 			G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT,
--			G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
--			G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING,
--			G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT,
--							G_TYPE_STRING);
-+			G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING,
-+			G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
-+			G_TYPE_STRING, G_TYPE_STRING,
-+			G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);
- 
- 	g_object_set_data(G_OBJECT(priv->store),
--					"State", g_strdup("unavailable"));
-+			"State", g_strdup("unavailable"));
- 
- 	priv->dbus = dbus_g_proxy_new_for_name(connection, DBUS_SERVICE_DBUS,
- 				DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);
-@@ -191,13 +191,23 @@ static gboolean device_filter(GtkTreeModel *model,
- {
- 	DBusGProxy *proxy;
- 	gboolean active;
-+	guint type;
- 
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_PROXY, &proxy, -1);
-+	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_PROXY, &proxy,
-+					CONNMAN_COLUMN_TYPE, &type,
-+					-1);
-+
-+	switch (type) {
-+	case CONNMAN_TYPE_LABEL_ETHERNET:
-+	case CONNMAN_TYPE_LABEL_WIFI:
-+	case CONNMAN_TYPE_SYSCONFIG:
-+		return TRUE;
-+	}
- 
- 	if (proxy == NULL)
- 		return FALSE;
- 
--	active = g_str_equal(CONNMAN_DEVICE_INTERFACE,
-+	active = g_str_equal(CONNMAN_SERVICE_INTERFACE,
- 					dbus_g_proxy_get_interface(proxy));
- 
- 	g_object_unref(proxy);
-@@ -231,10 +241,10 @@ static gboolean device_network_filter(GtkTreeModel *model,
- 	if (proxy == NULL)
- 		return FALSE;
- 
--	active = g_str_equal(CONNMAN_DEVICE_INTERFACE,
-+	active = g_str_equal(CONNMAN_SERVICE_INTERFACE,
- 					dbus_g_proxy_get_interface(proxy));
- 	if (active == FALSE)
--		active = g_str_equal(CONNMAN_NETWORK_INTERFACE,
-+		active = g_str_equal(CONNMAN_SERVICE_INTERFACE,
- 					dbus_g_proxy_get_interface(proxy));
- 
- 	g_object_unref(proxy);
-@@ -277,7 +287,7 @@ GtkTreeModel *connman_client_get_network_model(ConnmanClient *client,
- 		gtk_tree_model_get(GTK_TREE_MODEL(priv->store), &iter,
- 					CONNMAN_COLUMN_PROXY, &proxy, -1);
- 
--		if (g_str_equal(CONNMAN_DEVICE_INTERFACE,
-+		if (g_str_equal(CONNMAN_SERVICE_INTERFACE,
- 				dbus_g_proxy_get_interface(proxy)) == TRUE)
- 			found = g_str_has_prefix(dbus_g_proxy_get_path(proxy),
- 									device);
-@@ -314,7 +324,7 @@ static gboolean connection_filter(GtkTreeModel *model,
- 	if (proxy == NULL)
- 		return FALSE;
- 
--	active = g_str_equal(CONNMAN_CONNECTION_INTERFACE,
-+	active = g_str_equal(CONNMAN_SERVICE_INTERFACE,
- 					dbus_g_proxy_get_interface(proxy));
- 
- 	g_object_unref(proxy);
-@@ -337,28 +347,37 @@ GtkTreeModel *connman_client_get_connection_model(ConnmanClient *client)
- 	return model;
- }
- 
--void connman_client_set_policy(ConnmanClient *client, const gchar *device,
--							const gchar *policy)
-+gboolean connman_client_set_ipv4(ConnmanClient *client, const gchar *device,
-+			     struct ipv4_config *ipv4_config)
- {
- 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
- 	DBusGProxy *proxy;
- 	GValue value = { 0 };
-+	gboolean ret;
-+	GHashTable *ipv4 = g_hash_table_new(g_str_hash, g_str_equal);
-+
-+	g_hash_table_insert(ipv4, "Method",  (gpointer)ipv4_config->method);
-+	g_hash_table_insert(ipv4, "Address", (gpointer)ipv4_config->address);
-+	g_hash_table_insert(ipv4, "Netmask", (gpointer)ipv4_config->netmask);
-+	g_hash_table_insert(ipv4, "Gateway", (gpointer)ipv4_config->gateway);
- 
- 	DBG("client %p", client);
- 
- 	if (device == NULL)
--		return;
-+		return FALSE;
- 
- 	proxy = connman_dbus_get_proxy(priv->store, device);
- 	if (proxy == NULL)
--		return;
-+		return FALSE;
- 
--	g_value_init(&value, G_TYPE_STRING);
--	g_value_set_string(&value, policy);
-+	g_value_init(&value, DBUS_TYPE_G_STRING_STRING_HASHTABLE);
-+	g_value_set_boxed(&value, ipv4);
- 
--	connman_set_property(proxy, "Policy", &value, NULL);
-+	ret = connman_set_property(proxy, "IPv4.Configuration", &value, NULL);
- 
- 	g_object_unref(proxy);
-+
-+	return ret;
- }
- 
- void connman_client_set_powered(ConnmanClient *client, const gchar *device,
-@@ -385,98 +404,128 @@ void connman_client_set_powered(ConnmanClient *client, const gchar *device,
- 	g_object_unref(proxy);
- }
- 
--static gboolean device_scan(GtkTreeModel *model, GtkTreePath *path,
--					GtkTreeIter *iter, gpointer user_data)
-+void connman_client_request_scan(ConnmanClient *client, char *scantype,
-+				connman_request_scan_reply callback, gpointer userdata)
- {
--	DBusGProxy *proxy;
--	gboolean enabled;
-+	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
- 
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_PROXY, &proxy,
--					CONNMAN_COLUMN_ENABLED, &enabled, -1);
-+	DBG("client %p", client);
- 
--	if (proxy == NULL)
--		return FALSE;
-+	connman_request_scan_async(priv->manager, scantype, callback, userdata);
-+}
- 
--	if (g_str_equal(dbus_g_proxy_get_interface(proxy),
--					CONNMAN_DEVICE_INTERFACE) == FALSE)
--		return FALSE;
-+gboolean connman_client_get_offline_status(ConnmanClient *client)
-+{
-+	GHashTable *hash;
-+	GValue *value;
-+	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
-+	gboolean ret;
- 
--	if (enabled == FALSE)
--		return FALSE;
-+	DBG("client %p", client);
- 
--	connman_propose_scan(proxy, NULL);
-+	ret = connman_get_properties(priv->manager, &hash, NULL);
- 
--	g_object_unref(proxy);
-+	if (ret == FALSE)
-+		goto done;
-+
-+	value = g_hash_table_lookup(hash, "OfflineMode");
-+	ret = value ? g_value_get_boolean(value) : FALSE;
-+
-+done:
-+	return ret;
- 
--	return FALSE;
- }
- 
--void connman_client_propose_scan(ConnmanClient *client, const gchar *device)
-+void connman_client_set_offlinemode(ConnmanClient *client, gboolean status)
- {
- 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
--	DBusGProxy *proxy;
-+	GValue value = { 0 };
- 
- 	DBG("client %p", client);
- 
--	if (device == NULL) {
--		gtk_tree_model_foreach(GTK_TREE_MODEL(priv->store),
--							device_scan, NULL);
--		return;
--	}
--
--	proxy = connman_dbus_get_proxy(priv->store, device);
--	if (proxy == NULL)
--		return;
--
--	connman_propose_scan(proxy, NULL);
-+	g_value_init(&value, G_TYPE_BOOLEAN);
-+	g_value_set_boolean(&value, status);
- 
--	g_object_unref(proxy);
-+	connman_set_property(priv->manager, "OfflineMode", &value, NULL);
- }
- 
- static gboolean network_disconnect(GtkTreeModel *model, GtkTreePath *path,
- 					GtkTreeIter *iter, gpointer user_data)
- {
- 	DBusGProxy *proxy;
--	gboolean enabled;
-+	char *name;
-+	guint type;
- 
- 	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_PROXY, &proxy,
--					CONNMAN_COLUMN_ENABLED, &enabled, -1);
-+					CONNMAN_COLUMN_NAME, &name,
-+					CONNMAN_COLUMN_TYPE, &type,
-+					-1);
- 
- 	if (proxy == NULL)
--		return FALSE;
-+		return TRUE;
- 
- 	if (g_str_equal(dbus_g_proxy_get_interface(proxy),
--					CONNMAN_NETWORK_INTERFACE) == FALSE)
--		return FALSE;
-+					CONNMAN_SERVICE_INTERFACE) == FALSE)
-+		return TRUE;
- 
--	if (enabled == TRUE)
-+	if (type == CONNMAN_TYPE_WIFI)
- 		connman_disconnect(proxy, NULL);
- 
- 	g_object_unref(proxy);
- 
--	return enabled;
-+	return FALSE;
- }
- 
--void connman_client_connect(ConnmanClient *client, const gchar *network)
-+gboolean connman_client_connect(ConnmanClient *client, const gchar *network)
- {
- 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
- 	DBusGProxy *proxy;
-+	gboolean ret = FALSE;
- 
- 	DBG("client %p", client);
-+	DBG("network %s", network);
- 
- 	if (network == NULL)
--		return;
-+		goto done;
- 
- 	gtk_tree_model_foreach(GTK_TREE_MODEL(priv->store),
- 						network_disconnect, NULL);
- 
- 	proxy = connman_dbus_get_proxy(priv->store, network);
- 	if (proxy == NULL)
--		return;
-+		goto done;
- 
--	connman_connect(proxy, NULL);
-+	ret = connman_connect(proxy, NULL);
- 
- 	g_object_unref(proxy);
-+
-+done:
-+	return ret;
-+}
-+
-+void connman_client_connect_async(ConnmanClient *client, const gchar *network,
-+				  connman_connect_reply callback, gpointer userdata)
-+{
-+        ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
-+        DBusGProxy *proxy;
-+
-+        DBG("client %p", client);
-+        DBG("network %s", network);
-+
-+        if (network == NULL)
-+                goto done;
-+
-+        gtk_tree_model_foreach(GTK_TREE_MODEL(priv->store),
-+                                                network_disconnect, NULL);
-+
-+        proxy = connman_dbus_get_proxy(priv->store, network);
-+        if (proxy == NULL)
-+                goto done;
-+ 
-+	connman_connect_async(proxy, callback, userdata);
-+
-+done:
-+	return;
- }
- 
- static void connman_client_disconnect_all(ConnmanClient *client)
-@@ -487,32 +536,37 @@ static void connman_client_disconnect_all(ConnmanClient *client)
- 						network_disconnect, NULL);
- }
- 
--void connman_client_disconnect(ConnmanClient *client, const gchar *network)
-+gboolean connman_client_disconnect(ConnmanClient *client, const gchar *network)
- {
- 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
- 	DBusGProxy *proxy;
-+	gboolean ret = FALSE;
- 
- 	DBG("client %p", client);
- 
- 	if (network == NULL) {
-+		ret = TRUE;
- 		connman_client_disconnect_all(client);
--		return;
-+		goto done;
- 	}
- 
- 	proxy = connman_dbus_get_proxy(priv->store, network);
- 	if (proxy == NULL)
--		return;
-+		goto done;
- 
--	connman_disconnect(proxy, NULL);
-+	ret = connman_disconnect(proxy, NULL);
- 
- 	g_object_unref(proxy);
-+
-+done:
-+	return ret;
- }
- 
--guint connman_client_get_security(ConnmanClient *client, const gchar *network)
-+gchar *connman_client_get_security(ConnmanClient *client, const gchar *network)
- {
- 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
- 	GtkTreeIter iter;
--	guint security;
-+	gchar *security;
- 
- 	DBG("client %p", client);
- 
-@@ -548,41 +602,60 @@ gchar *connman_client_get_passphrase(ConnmanClient *client, const gchar *network
- 	return passphrase;
- }
- 
--void connman_client_set_passphrase(ConnmanClient *client, const gchar *network,
-+gboolean connman_client_set_passphrase(ConnmanClient *client, const gchar *network,
- 						const gchar *passphrase)
- {
- 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
- 	DBusGProxy *proxy;
- 	GValue value = { 0 };
-+	gboolean ret = FALSE;
- 
- 	DBG("client %p", client);
-+	DBG("network %p", network);
- 
- 	if (network == NULL)
--		return;
-+		goto done;
- 
- 	proxy = connman_dbus_get_proxy(priv->store, network);
- 	if (proxy == NULL)
--		return;
-+		goto done;
- 
- 	g_value_init(&value, G_TYPE_STRING);
- 	g_value_set_string(&value, passphrase);
- 
--	connman_set_property(proxy, "WiFi.Passphrase", &value, NULL);
-+	ret = connman_set_property(proxy, "Passphrase", &value, NULL);
- 
- 	g_value_unset(&value);
- 
- 	g_object_unref(proxy);
-+done:
-+	return ret;
- }
- 
--void connman_client_set_remember(ConnmanClient *client, const gchar *network,
--							gboolean remember)
-+void connman_client_set_callback(ConnmanClient *client,
-+			ConnmanClientCallback callback, gpointer user_data)
- {
- 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
--	DBusGProxy *proxy;
--	GValue value = { 0 };
-+	gchar *state;
- 
- 	DBG("client %p", client);
- 
-+	priv->callback = callback;
-+	priv->userdata = user_data;
-+
-+	g_object_set_data(G_OBJECT(priv->store), "callback", callback);
-+	g_object_set_data(G_OBJECT(priv->store), "userdata", user_data);
-+
-+	state = g_object_get_data(G_OBJECT(priv->store), "State");
-+	if (state != NULL && priv->callback != NULL)
-+		priv->callback(state, priv->userdata);
-+}
-+
-+void connman_client_remove(ConnmanClient *client, const gchar *network)
-+{
-+	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
-+	DBusGProxy *proxy;
-+
- 	if (network == NULL)
- 		return;
- 
-@@ -590,31 +663,46 @@ void connman_client_set_remember(ConnmanClient *client, const gchar *network,
- 	if (proxy == NULL)
- 		return;
- 
--	g_value_init(&value, G_TYPE_BOOLEAN);
--	g_value_set_boolean(&value, remember);
-+	connman_remove(proxy, NULL);
-+
-+	g_object_unref(proxy);
-+}
-+
-+void connman_client_enable_technology(ConnmanClient *client, const char *network,
-+				      const gchar *technology)
-+{
-+	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
-+	DBusGProxy *proxy;
-+	int ret;
- 
--	connman_set_property(proxy, "Remember", &value, NULL);
-+	if (network== NULL)
-+		return;
- 
--	g_value_unset(&value);
-+	proxy = connman_dbus_get_proxy(priv->store, network);
-+	if (proxy == NULL)
-+		return;
-+
-+	ret = connman_enable_technology(proxy, technology, NULL);
- 
- 	g_object_unref(proxy);
- }
- 
--void connman_client_set_callback(ConnmanClient *client,
--			ConnmanClientCallback callback, gpointer user_data)
-+void connman_client_disable_technology(ConnmanClient *client, const char *network,
-+				      const gchar *technology)
- {
- 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
--	gchar *state;
-+	DBusGProxy *proxy;
-+	int ret;
- 
--	DBG("client %p", client);
- 
--	priv->callback = callback;
--	priv->userdata = user_data;
-+	if (network == NULL)
-+		return;
- 
--	g_object_set_data(G_OBJECT(priv->store), "callback", callback);
--	g_object_set_data(G_OBJECT(priv->store), "userdata", user_data);
-+	proxy = connman_dbus_get_proxy(priv->store, network);
-+	if (proxy == NULL)
-+		return;
- 
--	state = g_object_get_data(G_OBJECT(priv->store), "State");
--	if (state != NULL && priv->callback != NULL)
--		priv->callback(state, priv->userdata);
-+	ret = connman_disable_technology(proxy, technology, NULL);
-+
-+	g_object_unref(proxy);
- }
-diff --git a/common/connman-client.h b/common/connman-client.h
-index f30dae4..00c328a 100644
---- a/common/connman-client.h
-+++ b/common/connman-client.h
-@@ -23,6 +23,7 @@
- #define __CONNMAN_CLIENT_H
- 
- #include <gtk/gtk.h>
-+#include "connman-dbus-glue.h"
- 
- G_BEGIN_DECLS
- 
-@@ -49,6 +50,13 @@ struct _ConnmanClientClass {
- 	GObjectClass parent_class;
- };
- 
-+struct ipv4_config {
-+	const gchar *method;
-+	const gchar *address;
-+	const gchar *netmask;
-+	const gchar *gateway;
-+};
-+
- GType connman_client_get_type(void);
- 
- ConnmanClient *connman_client_new(void);
-@@ -60,18 +68,20 @@ GtkTreeModel *connman_client_get_network_model(ConnmanClient *client,
- 							const gchar *device);
- GtkTreeModel *connman_client_get_connection_model(ConnmanClient *client);
- 
--void connman_client_set_policy(ConnmanClient *client, const gchar *device,
--							const gchar *policy);
- void connman_client_set_powered(ConnmanClient *client, const gchar *device,
- 							gboolean powered);
- void connman_client_propose_scan(ConnmanClient *client, const gchar *device);
- 
--void connman_client_connect(ConnmanClient *client, const gchar *network);
--void connman_client_disconnect(ConnmanClient *client, const gchar *network);
-+gboolean connman_client_connect(ConnmanClient *client, const gchar *network);
-+
-+void connman_client_connect_async(ConnmanClient *client, const gchar *network,
-+				  connman_connect_reply callback, gpointer userdata);
- 
--guint connman_client_get_security(ConnmanClient *client, const gchar *network);
-+gboolean connman_client_disconnect(ConnmanClient *client, const gchar *network);
-+
-+gchar *connman_client_get_security(ConnmanClient *client, const gchar *network);
- gchar *connman_client_get_passphrase(ConnmanClient *client, const gchar *network);
--void connman_client_set_passphrase(ConnmanClient *client, const gchar *network,
-+gboolean connman_client_set_passphrase(ConnmanClient *client, const gchar *network,
- 						const gchar *passphrase);
- void connman_client_set_remember(ConnmanClient *client, const gchar *network,
- 							gboolean remember);
-@@ -81,37 +91,63 @@ typedef void (* ConnmanClientCallback) (const char *status, void *user_data);
- void connman_client_set_callback(ConnmanClient *client,
- 			ConnmanClientCallback callback, gpointer user_data);
- 
-+gboolean connman_client_set_ipv4(ConnmanClient *client, const gchar *device,
-+			     struct ipv4_config *ipv4_config);
-+
-+gboolean connman_dbus_get_iter(GtkTreeStore *store, const gchar *path,
-+							GtkTreeIter *iter);
-+void connman_client_remove(ConnmanClient *client, const gchar *network);
-+
-+void connman_client_request_scan(ConnmanClient *client, char *scantype, 
-+				connman_request_scan_reply callback, gpointer userdata);
-+gboolean connman_client_get_offline_status(ConnmanClient *client);
-+void connman_client_set_offlinemode(ConnmanClient *client, gboolean status);
-+
-+void connman_client_enable_technology(ConnmanClient *client, const char *network,
-+				      const gchar *technology);
-+void connman_client_disable_technology(ConnmanClient *client, const char *network,
-+				      const gchar *technology);
- enum {
- 	CONNMAN_COLUMN_PROXY,		/* G_TYPE_OBJECT  */
-+	CONNMAN_COLUMN_STATE,		/* G_TYPE_STRING  */
- 	CONNMAN_COLUMN_NAME,		/* G_TYPE_STRING  */
--	CONNMAN_COLUMN_ICON,		/* G_TYPE_STRING  */
- 	CONNMAN_COLUMN_TYPE,		/* G_TYPE_UINT    */
--	CONNMAN_COLUMN_ENABLED,		/* G_TYPE_BOOLEAN */
--	CONNMAN_COLUMN_INRANGE,		/* G_TYPE_BOOLEAN */
--	CONNMAN_COLUMN_REMEMBER,	/* G_TYPE_BOOLEAN */
-+	CONNMAN_COLUMN_ICON,		/* G_TYPE_STRING  */
- 	CONNMAN_COLUMN_STRENGTH,	/* G_TYPE_UINT    */
--	CONNMAN_COLUMN_SECURITY,	/* G_TYPE_UINT    */
-+	CONNMAN_COLUMN_SECURITY,	/* G_TYPE_STRING  */
- 	CONNMAN_COLUMN_PASSPHRASE,	/* G_TYPE_STRING  */
--	CONNMAN_COLUMN_NETWORK,
--	CONNMAN_COLUMN_ADDRESS,
--	CONNMAN_COLUMN_POLICY,
--	CONNMAN_COLUMN_DEVICE,
--	_CONNMAN_NUM_COLUMNS
-+
-+	CONNMAN_COLUMN_METHOD,		/* G_TYPE_STRING */
-+	CONNMAN_COLUMN_ADDRESS,		/* G_TYPE_STRING */
-+	CONNMAN_COLUMN_NETMASK,		/* G_TYPE_STRING */
-+	CONNMAN_COLUMN_GATEWAY,		/* G_TYPE_STRING */
-+
-+	CONNMAN_COLUMN_ETHERNET_ENABLED,	/* G_TYPE_BOOLEAN */
-+	CONNMAN_COLUMN_WIFI_ENABLED,		/* G_TYPE_BOOLEAN */
-+
-+	CONNMAN_COLUMN_OFFLINEMODE,		/* G_TYPE_BOOLEAN */
-+
-+	_CONNMAN_NUM_COLUMNS,
-+
- };
- 
- enum {
- 	CONNMAN_TYPE_UNKNOWN,
-+
- 	CONNMAN_TYPE_ETHERNET,
- 	CONNMAN_TYPE_WIFI,
- 	CONNMAN_TYPE_WIMAX,
- 	CONNMAN_TYPE_BLUETOOTH,
-+
-+	CONNMAN_TYPE_LABEL_ETHERNET,
-+	CONNMAN_TYPE_LABEL_WIFI,
-+
-+	CONNMAN_TYPE_SYSCONFIG,
-+	_CONNMAN_NUM_TYPE,
- };
- 
- enum {
--	CONNMAN_POLICY_UNKNOWN,
--	CONNMAN_POLICY_IGNORE,
--	CONNMAN_POLICY_OFF,
--	CONNMAN_POLICY_AUTO,
-+	CONNMAN_POLICY_DHCP,
- 	CONNMAN_POLICY_MANUAL,
- };
- 
-diff --git a/common/connman-dbus.c b/common/connman-dbus.c
-index 9eba7ae..bf1778f 100644
---- a/common/connman-dbus.c
-+++ b/common/connman-dbus.c
-@@ -137,6 +137,27 @@ DBusGProxy *connman_dbus_get_proxy(GtkTreeStore *store, const gchar *path)
- 	return proxy;
- }
- 
-+static gboolean compare_type(GtkTreeStore *store, GtkTreeIter *iter,
-+						gconstpointer user_data)
-+{
-+	guint type_target = GPOINTER_TO_UINT(user_data);
-+	guint type;
-+	gboolean found = FALSE;
-+
-+	gtk_tree_model_get(GTK_TREE_MODEL(store), iter,
-+					CONNMAN_COLUMN_TYPE, &type, -1);
-+
-+	if (type != CONNMAN_TYPE_UNKNOWN)
-+		found = (type == type_target);
-+
-+	return found;
-+}
-+
-+static gboolean get_iter_from_type(GtkTreeStore *store, GtkTreeIter *iter, guint type)
-+{
-+	return iter_search(store, iter, NULL, compare_type, GUINT_TO_POINTER(type));
-+}
-+
- gboolean connman_dbus_get_iter(GtkTreeStore *store, const gchar *path,
- 							GtkTreeIter *iter)
- {
-@@ -167,12 +188,7 @@ static void property_update(GtkTreeStore *store, const GValue *value,
- 
- 	DBG("store %p key %s", store, key);
- 
--	if (g_str_equal(key, "Connections") == TRUE)
--		iface = CONNMAN_CONNECTION_INTERFACE;
--	else if (g_str_equal(key, "Devices") == TRUE)
--		iface = CONNMAN_DEVICE_INTERFACE;
--	else
--		iface = CONNMAN_NETWORK_INTERFACE;
-+	iface = CONNMAN_SERVICE_INTERFACE;
- 
- 	old_list = g_object_get_data(G_OBJECT(store), key);
- 
-@@ -205,25 +221,12 @@ static void property_update(GtkTreeStore *store, const GValue *value,
- 	for (list = old_list; list; list = list->next) {
- 		gchar *path = list->data;
- 		GtkTreeIter iter;
--		gchar *device = NULL;
- 
- 		DBG("old path %s", path);
- 
--		if (get_iter_from_path(store, &iter, path) == TRUE) {
--			if (g_str_equal(key, "Connections") == TRUE)
--				gtk_tree_model_get(GTK_TREE_MODEL(store), &iter,
--					CONNMAN_COLUMN_DEVICE, &device, -1);
--
-+		if (get_iter_from_path(store, &iter, path) == TRUE)
- 			gtk_tree_store_remove(store, &iter);
--		}
- 
--		if (get_iter_from_path(store, &iter, device) == TRUE) {
--			gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_INRANGE, FALSE,
--					CONNMAN_COLUMN_ADDRESS, NULL, -1);
--		}
--
--		g_free(device);
- 		g_free(path);
- 	}
- 
-@@ -263,155 +266,115 @@ static const gchar *type2icon(guint type)
- 	return NULL;
- }
- 
--static guint get_policy(const GValue *value)
--{
--	const char *policy = value ? g_value_get_string(value) : NULL;
--
--	if (policy == NULL)
--		return CONNMAN_POLICY_UNKNOWN;
--	else if (g_str_equal(policy, "ignore") == TRUE)
--		return CONNMAN_POLICY_IGNORE;
--	else if (g_str_equal(policy, "off") == TRUE)
--		return CONNMAN_POLICY_OFF;
--	else if (g_str_equal(policy, "auto") == TRUE)
--		return CONNMAN_POLICY_AUTO;
--	else if (g_str_equal(policy, "manual") == TRUE)
--		return CONNMAN_POLICY_MANUAL;
--
--	return CONNMAN_POLICY_UNKNOWN;
--}
--
--static guint get_security(const GValue *value)
--{
--	const char *security = value ? g_value_get_string(value) : NULL;
--
--	if (security == NULL)
--		return CONNMAN_SECURITY_UNKNOWN;
--	else if (g_str_equal(security, "none") == TRUE)
--		return CONNMAN_SECURITY_NONE;
--	else if (g_str_equal(security, "wep") == TRUE)
--		return CONNMAN_SECURITY_WEP;
--	else if (g_str_equal(security, "wpa") == TRUE)
--		return CONNMAN_SECURITY_WPA;
--	else if (g_str_equal(security, "wpa2") == TRUE)
--		return CONNMAN_SECURITY_WPA2;
--
--	return CONNMAN_SECURITY_UNKNOWN;
--}
--
--static void network_changed(DBusGProxy *proxy, const char *property,
--					GValue *value, gpointer user_data)
-+static void enabled_technologies_changed(GtkTreeStore *store, GValue *value)
- {
--	GtkTreeStore *store = user_data;
--	const char *path = dbus_g_proxy_get_path(proxy);
- 	GtkTreeIter iter;
-+	gboolean ethernet_enabled_prev, ethernet_enabled = FALSE;
-+	gboolean wifi_enabled_prev, wifi_enabled = FALSE;
-+	gchar **tech = g_value_get_boxed (value);
-+	gint i;
-+	gboolean ret;
- 
--	DBG("store %p proxy %p property %s", store, proxy, property);
--
--	if (property == NULL || value == NULL)
-+	if (value == NULL)
- 		return;
- 
--	if (get_iter_from_path(store, &iter, path) == FALSE)
--		return;
-+	for (i = 0; i < g_strv_length (tech); i++)
-+	{
-+		if (g_str_equal("ethernet", *(tech + i)))
-+			ethernet_enabled = TRUE;
-+		else if (g_str_equal ("wifi", *(tech + i)))
-+			wifi_enabled = TRUE;
-+	}
- 
--	if (g_str_equal(property, "Connected") == TRUE) {
--		gboolean connected = g_value_get_boolean(value);
--		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_ENABLED, connected, -1);
--	} else if (g_str_equal(property, "Available") == TRUE) {
--		gboolean inrange = g_value_get_boolean(value);
--		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_INRANGE, inrange, -1);
--	} else if (g_str_equal(property, "Remember") == TRUE) {
--		gboolean remember = g_value_get_boolean(value);
-+	get_iter_from_type(store, &iter, CONNMAN_TYPE_LABEL_ETHERNET);
-+	gtk_tree_model_get(GTK_TREE_MODEL(store), &iter,
-+			CONNMAN_COLUMN_ETHERNET_ENABLED, &ethernet_enabled_prev, -1);
-+	if (ethernet_enabled_prev != ethernet_enabled)
- 		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_REMEMBER, remember, -1);
--	} else if (g_str_equal(property, "Strength") == TRUE) {
--		guint strength = g_value_get_uchar(value);
-+				CONNMAN_COLUMN_ETHERNET_ENABLED, ethernet_enabled, -1);
-+
-+	ret = get_iter_from_type(store, &iter, CONNMAN_TYPE_LABEL_WIFI);
-+	gtk_tree_model_get(GTK_TREE_MODEL(store), &iter,
-+			CONNMAN_COLUMN_WIFI_ENABLED, &wifi_enabled_prev, -1);
-+	if (wifi_enabled_prev != wifi_enabled)
- 		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_STRENGTH, strength, -1);
--	}
-+				CONNMAN_COLUMN_WIFI_ENABLED, wifi_enabled, -1);
- }
- 
--static void network_properties(DBusGProxy *proxy, GHashTable *hash,
--					GError *error, gpointer user_data)
-+static void enabled_technologies_properties(GtkTreeStore *store, DBusGProxy *proxy, GValue *value)
- {
--	GtkTreeStore *store = user_data;
--	GValue *value;
--	const gchar *device, *name, *secret;
--	gboolean connected, inrange, remember;
--	guint strength, security;
--	GtkTreeIter iter, parent;
--
--	DBG("store %p proxy %p hash %p", store, proxy, hash);
--
--	if (error != NULL || hash == NULL)
--		goto done;
--
--	value = g_hash_table_lookup(hash, "Device");
--	device = value ? g_value_get_boxed(value) : NULL;
--
--	value = g_hash_table_lookup(hash, "Name");
--	name = value ? g_value_get_string(value) : NULL;
--
--	value = g_hash_table_lookup(hash, "Connected");
--	connected = value ? g_value_get_boolean(value) : FALSE;
--
--	value = g_hash_table_lookup(hash, "Available");
--	inrange = value ? g_value_get_boolean(value) : FALSE;
-+	GtkTreeIter iter;
-+	gboolean ethernet_enabled = FALSE;
-+	gboolean wifi_enabled = FALSE;
-+	gchar **tech = g_value_get_boxed (value);
-+	gint i;
-+
-+	for (i = 0; i < g_strv_length (tech); i++)
-+	{
-+		if (g_str_equal("ethernet", *(tech + i)))
-+			ethernet_enabled = TRUE;
-+		else if (g_str_equal ("wifi", *(tech + i)))
-+			wifi_enabled = TRUE;
-+	}
- 
--	value = g_hash_table_lookup(hash, "Remember");
--	remember = value ? g_value_get_boolean(value) : FALSE;
-+	if (get_iter_from_type(store, &iter, CONNMAN_TYPE_LABEL_ETHERNET) == FALSE)
-+		gtk_tree_store_append(store, &iter, NULL);
- 
--	value = g_hash_table_lookup(hash, "Strength");
--	strength = value ? g_value_get_uchar(value) : 0;
-+	gtk_tree_store_set(store, &iter,
-+			CONNMAN_COLUMN_PROXY, proxy,
-+			CONNMAN_COLUMN_ETHERNET_ENABLED, ethernet_enabled,
-+			CONNMAN_COLUMN_TYPE, CONNMAN_TYPE_LABEL_ETHERNET,
-+			-1);
- 
--	value = g_hash_table_lookup(hash, "WiFi.Security");
--	security = get_security(value);
-+	if (get_iter_from_type(store, &iter, CONNMAN_TYPE_LABEL_WIFI) == FALSE)
-+		gtk_tree_store_append(store, &iter, NULL);
- 
--	value = g_hash_table_lookup(hash, "WiFi.Passphrase");
--	secret = value ? g_value_get_string(value) : NULL;
-+	gtk_tree_store_set(store, &iter,
-+			CONNMAN_COLUMN_PROXY, proxy,
-+			CONNMAN_COLUMN_WIFI_ENABLED, wifi_enabled,
-+			CONNMAN_COLUMN_TYPE, CONNMAN_TYPE_LABEL_WIFI,
-+			-1);
-+}
- 
--	DBG("name %s strength %d", name, strength);
-+static void offline_mode_changed(GtkTreeStore *store, GValue *value)
-+{
-+	GtkTreeIter iter;
-+	gboolean offline_mode = g_value_get_boolean(value);
- 
--	if (get_iter_from_path(store, &parent, device) == FALSE)
--		return;
-+	get_iter_from_type(store, &iter, CONNMAN_TYPE_SYSCONFIG);
-+	gtk_tree_store_set(store, &iter,
-+			CONNMAN_COLUMN_OFFLINEMODE, offline_mode,
-+			-1);
-+}
- 
--	if (get_iter_from_proxy(store, &iter, proxy) == FALSE) {
--		gtk_tree_store_insert_with_values(store, &iter, &parent, -1,
--					CONNMAN_COLUMN_PROXY, proxy,
--					CONNMAN_COLUMN_NAME, name,
--					CONNMAN_COLUMN_ENABLED, connected,
--					CONNMAN_COLUMN_INRANGE, inrange,
--					CONNMAN_COLUMN_REMEMBER, remember,
--					CONNMAN_COLUMN_STRENGTH, strength,
--					CONNMAN_COLUMN_SECURITY, security,
--					CONNMAN_COLUMN_PASSPHRASE, secret, -1);
-+static void offline_mode_properties(GtkTreeStore *store, DBusGProxy *proxy, GValue *value)
-+{
-+	GtkTreeIter iter;
-+	gboolean offline_mode = g_value_get_boolean(value);
- 
--		dbus_g_proxy_add_signal(proxy, "PropertyChanged",
--				G_TYPE_STRING, G_TYPE_VALUE, G_TYPE_INVALID);
--		dbus_g_proxy_connect_signal(proxy, "PropertyChanged",
--				G_CALLBACK(network_changed), store, NULL);
--	} else
--		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_NAME, name,
--					CONNMAN_COLUMN_ENABLED, connected,
--					CONNMAN_COLUMN_INRANGE, inrange,
--					CONNMAN_COLUMN_REMEMBER, remember,
--					CONNMAN_COLUMN_STRENGTH, strength,
--					CONNMAN_COLUMN_SECURITY, security,
--					CONNMAN_COLUMN_PASSPHRASE, secret, -1);
-+	if (get_iter_from_type(store, &iter, CONNMAN_TYPE_SYSCONFIG) == FALSE)
-+		gtk_tree_store_insert(store, &iter, NULL, 0);
- 
--done:
--	g_object_unref(proxy);
-+	gtk_tree_store_set(store, &iter,
-+			CONNMAN_COLUMN_PROXY, proxy,
-+			CONNMAN_COLUMN_TYPE, CONNMAN_TYPE_SYSCONFIG,
-+			CONNMAN_COLUMN_OFFLINEMODE, offline_mode,
-+			-1);
- }
- 
--static void device_changed(DBusGProxy *proxy, const char *property,
-+static void service_changed(DBusGProxy *proxy, const char *property,
- 					GValue *value, gpointer user_data)
- {
- 	GtkTreeStore *store = user_data;
- 	const char *path = dbus_g_proxy_get_path(proxy);
- 	GtkTreeIter iter;
-+	GHashTable *ipv4;
-+	const char *method, *addr, *netmask, *gateway;
-+	GValue *ipv4_method, *ipv4_address, *ipv4_netmask, *ipv4_gateway;
-+
-+	const char *state, *icon, *name, *security, *passphrase;
-+	guint strength, type;
-+
- 
- 	DBG("store %p proxy %p property %s", store, proxy, property);
- 
-@@ -421,165 +384,167 @@ static void device_changed(DBusGProxy *proxy, const char *property,
- 	if (get_iter_from_path(store, &iter, path) == FALSE)
- 		return;
- 
--	if (g_str_equal(property, "Policy") == TRUE) {
--		guint policy = get_policy(value);
--		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_POLICY, policy, -1);
--	} else if (g_str_equal(property, "Powered") == TRUE) {
--		gboolean powered = g_value_get_boolean(value);
--		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_ENABLED, powered, -1);
--	} else if (g_str_equal(property, "Networks") == TRUE)
--		property_update(store, value, path, network_properties);
--}
--
--static void device_properties(DBusGProxy *proxy, GHashTable *hash,
--					GError *error, gpointer user_data)
--{
--	GtkTreeStore *store = user_data;
--	const char *path = dbus_g_proxy_get_path(proxy);
--	GValue *value;
--	const gchar *name, *icon;
--	guint type, policy;
--	gboolean powered;
--	GtkTreeIter iter;
--
--	DBG("store %p proxy %p hash %p", store, proxy, hash);
-+	if (g_str_equal(property, "IPv4") == TRUE) {
- 
--	if (error != NULL || hash == NULL)
--		goto done;
--
--	value = g_hash_table_lookup(hash, "Name");
--	name = value ? g_value_get_string(value) : NULL;
--
--	value = g_hash_table_lookup(hash, "Type");
--	type = get_type(value);
--	icon = type2icon(type);
-+		ipv4 = g_value_get_boxed (value);
-+		if (!ipv4)
-+			return;
- 
--	value = g_hash_table_lookup(hash, "Policy");
--	policy = get_policy(value);
-+		ipv4_method = g_hash_table_lookup (ipv4, "Method");
-+		method = ipv4_method ? g_value_get_string(ipv4_method) : NULL;
- 
--	value = g_hash_table_lookup(hash, "Powered");
--	powered = value ? g_value_get_boolean(value) : FALSE;
-+		ipv4_address = g_hash_table_lookup (ipv4, "Address");
-+		addr = ipv4_address ? g_value_get_string(ipv4_address) : NULL;
- 
--	DBG("name %s type %d icon %s", name, type, icon);
-+		ipv4_netmask = g_hash_table_lookup (ipv4, "Netmask");
-+		netmask = ipv4_netmask ? g_value_get_string(ipv4_netmask) : NULL;
- 
--	if (get_iter_from_proxy(store, &iter, proxy) == FALSE) {
--		gtk_tree_store_insert_with_values(store, &iter, NULL, -1,
--					CONNMAN_COLUMN_PROXY, proxy,
--					CONNMAN_COLUMN_NAME, name,
--					CONNMAN_COLUMN_ICON, icon,
--					CONNMAN_COLUMN_TYPE, type,
--					CONNMAN_COLUMN_ENABLED, powered,
--					CONNMAN_COLUMN_POLICY, policy, -1);
-+		ipv4_gateway = g_hash_table_lookup (ipv4, "Gateway");
-+		gateway = ipv4_gateway ? g_value_get_string(ipv4_gateway) : NULL;
- 
--		dbus_g_proxy_add_signal(proxy, "PropertyChanged",
--				G_TYPE_STRING, G_TYPE_VALUE, G_TYPE_INVALID);
--		dbus_g_proxy_connect_signal(proxy, "PropertyChanged",
--				G_CALLBACK(device_changed), store, NULL);
--	} else
-+		gtk_tree_store_set(store, &iter,
-+					CONNMAN_COLUMN_METHOD, method,
-+					CONNMAN_COLUMN_ADDRESS, addr,
-+					CONNMAN_COLUMN_NETMASK, netmask,
-+					CONNMAN_COLUMN_GATEWAY, gateway,
-+					-1);
-+
-+	} else if (g_str_equal(property, "State") == TRUE) {
-+		state = value ? g_value_get_string(value) : NULL;
-+		gtk_tree_store_set(store, &iter,
-+					CONNMAN_COLUMN_STATE, state,
-+					-1);
-+	} else if (g_str_equal(property, "Name") == TRUE) {
-+		name = value ? g_value_get_string(value) : NULL;
- 		gtk_tree_store_set(store, &iter,
- 					CONNMAN_COLUMN_NAME, name,
--					CONNMAN_COLUMN_ICON, icon,
-+					-1);
-+	} else if (g_str_equal(property, "Type") == TRUE) {
-+		type = get_type(value);
-+		icon = type2icon(type);
-+		gtk_tree_store_set(store, &iter,
- 					CONNMAN_COLUMN_TYPE, type,
--					CONNMAN_COLUMN_ENABLED, powered,
--					CONNMAN_COLUMN_POLICY, policy, -1);
--
--	value = g_hash_table_lookup(hash, "Networks");
--	if (value != NULL)
--		property_update(store, value, path, network_properties);
--
--done:
--	g_object_unref(proxy);
--}
--
--static void connection_changed(DBusGProxy *proxy, const char *property,
--					GValue *value, gpointer user_data)
--{
--	GtkTreeStore *store = user_data;
--	const char *path = dbus_g_proxy_get_path(proxy);
--	GtkTreeIter iter;
--
--	DBG("store %p proxy %p property %s", store, proxy, property);
--
--	if (property == NULL || value == NULL)
--		return;
--
--	if (get_iter_from_path(store, &iter, path) == FALSE)
--		return;
--
--	if (g_str_equal(property, "Default") == TRUE) {
--		gboolean enabled = g_value_get_boolean(value);
-+					CONNMAN_COLUMN_ICON, icon,
-+					-1);
-+	} else if (g_str_equal(property, "Security") == TRUE) {
-+		security = value ? g_value_get_string(value) : NULL;
-+		gtk_tree_store_set(store, &iter,
-+					CONNMAN_COLUMN_SECURITY, security,
-+					-1);
-+	} else if (g_str_equal(property, "PassPhrase") == TRUE) {
-+		passphrase = value ? g_value_get_string(value) : NULL;
- 		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_ENABLED, enabled, -1);
-+					CONNMAN_COLUMN_PASSPHRASE, passphrase,
-+					-1);
- 	} else if (g_str_equal(property, "Strength") == TRUE) {
--		guint strength = g_value_get_uchar(value);
-+		strength = value ? g_value_get_uchar(value) : 0;
- 		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_STRENGTH, strength, -1);
-+					CONNMAN_COLUMN_STRENGTH, strength,
-+					-1);
- 	}
- }
- 
--static void connection_properties(DBusGProxy *proxy, GHashTable *hash,
-+static void service_properties(DBusGProxy *proxy, GHashTable *hash,
- 					GError *error, gpointer user_data)
- {
- 	GtkTreeStore *store = user_data;
--	GValue *value;
--	guint type, strength;
--	gboolean enabled;
--	const char *device, *address;
-+
-+	const char *state, *icon, *name, *security, *passphrase;
-+	guint strength, type;
-+
-+	GHashTable *ipv4;
-+	GValue *ipv4_method, *ipv4_address, *ipv4_netmask, *ipv4_gateway;
-+	const char *method, *addr, *netmask, *gateway;
-+
- 	GtkTreeIter iter;
- 
-+	GValue *value;
-+
- 	DBG("store %p proxy %p hash %p", store, proxy, hash);
- 
- 	if (error != NULL || hash == NULL)
- 		goto done;
- 
-+	value = g_hash_table_lookup(hash, "State");
-+	state = value ? g_value_get_string(value) : NULL;
-+
-+	value = g_hash_table_lookup(hash, "Name");
-+	name = value ? g_value_get_string(value) : NULL;
-+
- 	value = g_hash_table_lookup(hash, "Type");
- 	type = get_type(value);
-+	icon = type2icon(type);
-+
-+	value = g_hash_table_lookup(hash, "Security");
-+	security = value ? g_value_get_string(value) : NULL;
-+
-+	value = g_hash_table_lookup(hash, "PassPhrase");
-+	passphrase = value ? g_value_get_string(value) : NULL;
- 
- 	value = g_hash_table_lookup(hash, "Strength");
- 	strength = value ? g_value_get_uchar(value) : 0;
- 
--	value = g_hash_table_lookup(hash, "Default");
--	enabled = value ? g_value_get_boolean(value) : FALSE;
-+	value = g_hash_table_lookup(hash, "IPv4.Configuration");
-+	ipv4 = g_value_get_boxed (value);
- 
--	value = g_hash_table_lookup(hash, "IPv4.Address");
--	address = value ? g_value_get_string(value) : NULL;
-+	if (!ipv4)
-+		goto done;
- 
--	DBG("type %d address %s", type, address);
-+	ipv4_method = g_hash_table_lookup (ipv4, "Method");
-+	method = ipv4_method ? g_value_get_string(ipv4_method) : NULL;
- 
--	if (get_iter_from_proxy(store, &iter, proxy) == FALSE) {
--		gtk_tree_store_insert_with_values(store, &iter, NULL, -1,
--					CONNMAN_COLUMN_PROXY, proxy,
--					CONNMAN_COLUMN_TYPE, type,
--					CONNMAN_COLUMN_ENABLED, enabled,
--					CONNMAN_COLUMN_STRENGTH, strength,
--					CONNMAN_COLUMN_ADDRESS, address, -1);
-+	ipv4_address = g_hash_table_lookup (ipv4, "Address");
-+	addr = ipv4_address ? g_value_get_string(ipv4_address) : NULL;
- 
--		dbus_g_proxy_add_signal(proxy, "PropertyChanged",
--				G_TYPE_STRING, G_TYPE_VALUE, G_TYPE_INVALID);
--		dbus_g_proxy_connect_signal(proxy, "PropertyChanged",
--				G_CALLBACK(connection_changed), store, NULL);
--	} else
--		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_TYPE, type,
--					CONNMAN_COLUMN_ENABLED, enabled,
--					CONNMAN_COLUMN_STRENGTH, strength, -1);
-+	ipv4_netmask = g_hash_table_lookup (ipv4, "Netmask");
-+	netmask = ipv4_netmask ? g_value_get_string(ipv4_netmask) : NULL;
- 
--	value = g_hash_table_lookup(hash, "Device");
--	device = value ? g_value_get_boxed(value) : NULL;
-+	ipv4_gateway = g_hash_table_lookup (ipv4, "Gateway");
-+	gateway = ipv4_gateway ? g_value_get_string(ipv4_gateway) : NULL;
- 
--	DBG("device %s", device);
-+	DBG("name %s type %d icon %s state %s", name, type, icon, state);
- 
--	gtk_tree_store_set(store, &iter, CONNMAN_COLUMN_DEVICE, device, -1);
-+	if (get_iter_from_proxy(store, &iter, proxy) == FALSE) {
-+		GtkTreeIter label_iter;
-+		guint label_type;
- 
--	if (get_iter_from_path(store, &iter, device) == TRUE) {
--		gtk_tree_store_set(store, &iter,
--					CONNMAN_COLUMN_DEVICE, device,
--					CONNMAN_COLUMN_INRANGE, TRUE,
--					CONNMAN_COLUMN_ADDRESS, address, -1);
-+		switch (type) {
-+		case CONNMAN_TYPE_ETHERNET:
-+			label_type = CONNMAN_TYPE_LABEL_ETHERNET;
-+			break;
-+		case CONNMAN_TYPE_WIFI:
-+			label_type = CONNMAN_TYPE_LABEL_WIFI;
-+			break;
-+		default:
-+			label_type = CONNMAN_TYPE_UNKNOWN;
-+			break;
-+		}
-+
-+		get_iter_from_type(store, &label_iter, label_type);
-+
-+		gtk_tree_store_insert_after(store, &iter, NULL, &label_iter);
-+
-+		dbus_g_proxy_add_signal(proxy, "PropertyChanged",
-+				G_TYPE_STRING, G_TYPE_VALUE, G_TYPE_INVALID);
-+		dbus_g_proxy_connect_signal(proxy, "PropertyChanged",
-+				G_CALLBACK(service_changed), store, NULL);
- 	}
- 
-+	gtk_tree_store_set(store, &iter,
-+				CONNMAN_COLUMN_PROXY, proxy,
-+				CONNMAN_COLUMN_NAME, name,
-+				CONNMAN_COLUMN_ICON, icon,
-+				CONNMAN_COLUMN_TYPE, type,
-+				CONNMAN_COLUMN_STATE, state,
-+				CONNMAN_COLUMN_SECURITY, security,
-+				CONNMAN_COLUMN_PASSPHRASE, passphrase,
-+				CONNMAN_COLUMN_STRENGTH, strength,
-+				CONNMAN_COLUMN_METHOD, method,
-+				CONNMAN_COLUMN_ADDRESS, addr,
-+				CONNMAN_COLUMN_NETMASK, netmask,
-+				CONNMAN_COLUMN_GATEWAY, gateway,
-+				-1);
-+
- done:
- 	g_object_unref(proxy);
- }
-@@ -594,25 +559,12 @@ static void manager_changed(DBusGProxy *proxy, const char *property,
- 	if (property == NULL || value == NULL)
- 		return;
- 
--	if (g_str_equal(property, "State") == TRUE) {
--		ConnmanClientCallback callback;
--		gpointer userdata;
--		gchar *state;
--
--		state = g_object_get_data(G_OBJECT(store), "State");
--		g_free(state);
--
--		state = g_value_dup_string(value);
--		g_object_set_data(G_OBJECT(store), "State", state);
--
--		callback = g_object_get_data(G_OBJECT(store), "callback");
--		userdata = g_object_get_data(G_OBJECT(store), "userdata");
--		if (callback)
--			callback(state, userdata);
--	} else if (g_str_equal(property, "Connections") == TRUE) {
--		property_update(store, value, property, connection_properties);
--	} else if (g_str_equal(property, "Devices") == TRUE) {
--		property_update(store, value, property, device_properties);
-+	if (g_str_equal(property, "Services") == TRUE) {
-+		property_update(store, value, property, service_properties);
-+	} else if (g_str_equal(property, "EnabledTechnologies") == TRUE) {
-+		enabled_technologies_changed(store, value);
-+	} else if (g_str_equal(property, "OfflineMode") == TRUE) {
-+		offline_mode_changed(store, value);
- 	}
- }
- 
-@@ -620,31 +572,24 @@ static void manager_properties(DBusGProxy *proxy, GHashTable *hash,
- 					GError *error, gpointer user_data)
- {
- 	GtkTreeStore *store = user_data;
--	ConnmanClientCallback callback;
- 	GValue *value;
--	gchar *state;
- 
- 	DBG("store %p proxy %p hash %p", store, proxy, hash);
- 
- 	if (error != NULL || hash == NULL)
- 		return;
- 
--	value = g_hash_table_lookup(hash, "State");
--	state = value ? g_value_dup_string(value) : NULL;
--	g_object_set_data(G_OBJECT(store), "State", state);
--
--	callback = g_object_get_data(G_OBJECT(store), "callback");
--	if (callback)
--		callback(state, NULL);
-+	value = g_hash_table_lookup(hash, "Services");
-+	if (value != NULL)
-+		property_update(store, value, "Services", service_properties);
- 
--	value = g_hash_table_lookup(hash, "Devices");
-+	value = g_hash_table_lookup(hash, "EnabledTechnologies");
- 	if (value != NULL)
--		property_update(store, value, "Devices", device_properties);
-+		enabled_technologies_properties(store, proxy, value);
- 
--	value = g_hash_table_lookup(hash, "Connections");
-+	value = g_hash_table_lookup(hash, "OfflineMode");
- 	if (value != NULL)
--		property_update(store, value,
--					"Connections", connection_properties);
-+		offline_mode_properties(store, proxy, value);
- }
- 
- DBusGProxy *connman_dbus_create_manager(DBusGConnection *conn,
-diff --git a/common/connman-dbus.h b/common/connman-dbus.h
-index a9fa51c..dc07650 100644
---- a/common/connman-dbus.h
-+++ b/common/connman-dbus.h
-@@ -31,7 +31,7 @@
- #define CONNMAN_MANAGER_PATH		"/"
- 
- #define CONNMAN_PROFILE_INTERFACE	CONNMAN_SERVICE ".Profile"
--#define CONNMAN_DEVICE_INTERFACE	CONNMAN_SERVICE ".Device"
-+#define CONNMAN_SERVICE_INTERFACE	CONNMAN_SERVICE ".Service"
- #define CONNMAN_NETWORK_INTERFACE	CONNMAN_SERVICE ".Network"
- #define CONNMAN_CONNECTION_INTERFACE	CONNMAN_SERVICE ".Connection"
- 
-diff --git a/common/connman-dbus.xml b/common/connman-dbus.xml
-index 9fefd55..e20cb3b 100644
---- a/common/connman-dbus.xml
-+++ b/common/connman-dbus.xml
-@@ -15,5 +15,16 @@
-     </method>
-     <method name="Disconnect">
-     </method>
-+    <method name="Remove">
-+    </method>
-+    <method name="RequestScan">
-+      <arg type="s"/>
-+    </method>
-+    <method name="EnableTechnology">
-+      <arg type="s"/>
-+    </method>
-+    <method name="DisableTechnology">
-+      <arg type="s"/>
-+    </method>
-   </interface>
- </node>
-diff --git a/common/demo.c b/common/demo.c
-deleted file mode 100644
-index 5e3924f..0000000
---- a/common/demo.c
-+++ /dev/null
-@@ -1,465 +0,0 @@
--/*
-- *
-- *  Connection Manager
-- *
-- *  Copyright (C) 2008  Intel Corporation. All rights reserved.
-- *
-- *  This program is free software; you can redistribute it and/or modify
-- *  it under the terms of the GNU General Public License version 2 as
-- *  published by the Free Software Foundation.
-- *
-- *  This program is distributed in the hope that it will be useful,
-- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
-- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- *  GNU General Public License for more details.
-- *
-- *  You should have received a copy of the GNU General Public License
-- *  along with this program; if not, write to the Free Software
-- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-- *
-- */
--
--#ifdef HAVE_CONFIG_H
--#include <config.h>
--#endif
--
--#include <dbus/dbus-glib.h>
--#include <gtk/gtk.h>
--
--#include "connman-client.h"
--
--static gboolean option_fullscreen = FALSE;
--static ConnmanClient *client;
--
--static GtkWidget *tree_networks = NULL;
--static GtkWidget *button_enabled = NULL;
--static GtkWidget *button_refresh = NULL;
--static GtkWidget *button_connect = NULL;
--static GtkWidget *label_status = NULL;
--static GtkTreeSelection *selection = NULL;
--
--static void status_callback(const char *status, void *user_data)
--{
--	gchar *markup;
--
--	if (label_status == NULL)
--		return;
--
--	markup = g_strdup_printf("System is %s", status);
--	gtk_label_set_markup(GTK_LABEL(label_status), markup);
--	g_free(markup);
--}
--
--static GtkWidget *create_label(const gchar *str)
--{
--	GtkWidget *label;
--	gchar *tmp;
--
--	label = gtk_label_new(NULL);
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
--	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
--
--	tmp = g_strdup_printf("<b>%s</b>", str);
--	gtk_label_set_markup(GTK_LABEL(label), tmp);
--	g_free(tmp);
--
--	return label;
--}
--
--static void changed_callback(GtkComboBox *combo, gpointer user_data)
--{
--	GtkTreeModel *model = gtk_combo_box_get_model(combo);
--	GtkTreeIter iter;
--	DBusGProxy *proxy;
--	gchar *path;
--	gboolean enabled;
--
--	if (gtk_combo_box_get_active_iter(combo, &iter) == FALSE)
--		return;
--
--	path = g_object_get_data(G_OBJECT(button_enabled), "device");
--	g_free(path);
--
--	gtk_tree_model_get(model, &iter, CONNMAN_COLUMN_PROXY, &proxy,
--					CONNMAN_COLUMN_ENABLED, &enabled, -1);
--
--	path = g_strdup(dbus_g_proxy_get_path(proxy));
--	g_object_set_data(G_OBJECT(button_enabled), "device", path);
--
--	g_object_unref(proxy);
--
--	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button_enabled),
--								enabled);
--
--	gtk_widget_set_sensitive(button_refresh, enabled);
--
--	model = connman_client_get_network_model(client, path);
--	gtk_tree_view_set_model(GTK_TREE_VIEW(tree_networks), model);
--	g_object_unref(model);
--}
--
--static void toggled_callback(GtkToggleButton *button, gpointer user_data)
--{
--	gchar *path;
--	gboolean active;
--
--	path = g_object_get_data(G_OBJECT(button), "device");
--	if (path == NULL)
--		return;
--
--	active = gtk_toggle_button_get_active(button);
--
--	connman_client_set_powered(client, path, active);
--
--	gtk_widget_set_sensitive(button_refresh, active);
--}
--
--static void refresh_callback(GtkButton *button, gpointer user_data)
--{
--	gchar *path;
--
--	path = g_object_get_data(G_OBJECT(button_enabled), "device");
--	if (path == NULL)
--		return;
--
--	connman_client_propose_scan(client, path);
--}
--
--static void connect_callback(GtkButton *button, gpointer user_data)
--{
--	GtkTreeModel *model;
--	GtkTreeIter iter;
--	DBusGProxy *proxy;
--	const gchar *path;
--	gboolean enabled;
--
--	if (gtk_tree_selection_get_selected(selection, &model, &iter) == FALSE)
--		return;
--
--	gtk_tree_model_get(model, &iter, CONNMAN_COLUMN_PROXY, &proxy,
--					CONNMAN_COLUMN_ENABLED, &enabled, -1);
--
--	path = dbus_g_proxy_get_path(proxy);
--
--	if (enabled == FALSE)
--		connman_client_connect(client, path);
--	else
--		connman_client_disconnect(client, path);
--
--	g_object_unref(proxy);
--
--	if (enabled == FALSE)
--		g_object_set(button_connect,
--				"label", GTK_STOCK_DISCONNECT, NULL);
--	else
--		g_object_set(button_connect,
--				"label", GTK_STOCK_CONNECT, NULL);
--}
--
--static GtkWidget *create_left(void)
--{
--	GtkWidget *mainbox;
--	GtkWidget *vbox;
--	GtkWidget *hbox;
--	GtkWidget *label;
--	GtkWidget *combo;
--	GtkWidget *button;
--	GtkTreeModel *model;
--	GtkCellRenderer *renderer;
--
--	mainbox = gtk_vbox_new(FALSE, 24);
--	gtk_container_set_border_width(GTK_CONTAINER(mainbox), 8);
--
--	vbox = gtk_vbox_new(FALSE, 6);
--	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
--
--	label = create_label("Device");
--	gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
--
--	combo = gtk_combo_box_new();
--	gtk_box_pack_start(GTK_BOX(vbox), combo, FALSE, FALSE, 0);
--	g_signal_connect(G_OBJECT(combo), "changed",
--					G_CALLBACK(changed_callback), NULL);
--
--	gtk_cell_layout_clear(GTK_CELL_LAYOUT(combo));
--
--	renderer = gtk_cell_renderer_text_new();
--	gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo), renderer, TRUE);
--	gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo), renderer,
--					"text", CONNMAN_COLUMN_NAME, NULL);
--
--	button = gtk_check_button_new_with_label("Enabled");
--	gtk_box_pack_end(GTK_BOX(vbox), button, FALSE, FALSE, 0);
--	g_signal_connect(G_OBJECT(button), "toggled",
--					G_CALLBACK(toggled_callback), NULL);
--
--	button_enabled = button;
--
--	vbox = gtk_vbox_new(FALSE, 6);
--	gtk_box_pack_start(GTK_BOX(mainbox), vbox, TRUE, TRUE, 0);
--
--	label = create_label("Status");
--	gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
--
--	label = gtk_label_new(NULL);
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
--	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
--	gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0);
--
--	label_status = label;
--
--	vbox = gtk_vbox_new(FALSE, 6);
--	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
--
--	hbox = gtk_hbox_new(FALSE, 12);
--	gtk_box_set_homogeneous(GTK_BOX(hbox), TRUE);
--	gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0);
--
--	button = gtk_button_new_from_stock(GTK_STOCK_REFRESH);
--	gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0);
--	gtk_widget_set_sensitive(button, FALSE);
--	g_signal_connect(G_OBJECT(button), "clicked",
--					G_CALLBACK(refresh_callback), NULL);
--
--	button_refresh = button;
--
--	button = gtk_button_new_from_stock(GTK_STOCK_DISCONNECT);
--	gtk_box_pack_end(GTK_BOX(hbox), button, TRUE, TRUE, 0);
--	gtk_widget_set_sensitive(button, FALSE);
--	g_signal_connect(G_OBJECT(button), "clicked",
--					G_CALLBACK(connect_callback), NULL);
--
--	button_connect = button;
--
--	model = connman_client_get_device_model(client);
--	gtk_combo_box_set_model(GTK_COMBO_BOX(combo), model);
--	g_object_unref(model);
--
--	gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
--
--	return mainbox;
--}
--
--static void select_callback(GtkTreeSelection *selection, gpointer user_data)
--{
--	GtkTreeModel *model;
--	GtkTreeIter iter;
--	gboolean selected, enabled;
--
--	selected = gtk_tree_selection_get_selected(selection, &model, &iter);
--
--	if (selected == TRUE) {
--		gtk_tree_model_get(model, &iter,
--					CONNMAN_COLUMN_ENABLED, &enabled, -1);
--
--		if (enabled == TRUE)
--			g_object_set(button_connect,
--					"label", GTK_STOCK_DISCONNECT, NULL);
--		else
--			g_object_set(button_connect,
--					"label", GTK_STOCK_CONNECT, NULL);
--	}
--
--	gtk_widget_set_sensitive(button_connect, selected);
--}
--
--static void status_to_icon(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
--{
--	gboolean enabled;
--
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_ENABLED, &enabled, -1);
--
--	if (enabled == TRUE)
--		g_object_set(cell, "icon-name", GTK_STOCK_ABOUT, NULL);
--
--	g_object_set(cell, "visible", enabled, NULL);
--}
--
--static void security_to_icon(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
--{
--	guint security;
--
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_SECURITY, &security, -1);
--
--	if (security == CONNMAN_SECURITY_NONE)
--		g_object_set(cell, "icon-name", NULL, NULL);
--	else
--		g_object_set(cell, "icon-name",
--					GTK_STOCK_DIALOG_AUTHENTICATION, NULL);
--}
--
--static GtkWidget *create_right(void)
--{
--	GtkWidget *mainbox;
--	GtkWidget *vbox;
--	GtkWidget *label;
--	GtkWidget *scrolled;
--	GtkWidget *tree;
--	GtkTreeViewColumn *column;
--	GtkCellRenderer *renderer;
--
--	mainbox = gtk_vbox_new(FALSE, 24);
--	gtk_container_set_border_width(GTK_CONTAINER(mainbox), 8);
--
--	vbox = gtk_vbox_new(FALSE, 6);
--	gtk_box_pack_start(GTK_BOX(mainbox), vbox, TRUE, TRUE, 0);
--
--	label = create_label("Networks");
--	gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
--
--	scrolled = gtk_scrolled_window_new(NULL, NULL);
--	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled),
--				GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
--	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled),
--							GTK_SHADOW_OUT);
--	gtk_container_add(GTK_CONTAINER(vbox), scrolled);
--
--	tree = gtk_tree_view_new();
--	gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree), FALSE);
--	gtk_tree_view_set_show_expanders(GTK_TREE_VIEW(tree), FALSE);
--	gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tree), TRUE);
--	gtk_container_add(GTK_CONTAINER(scrolled), tree);
--
--	gtk_tree_view_insert_column_with_data_func(GTK_TREE_VIEW(tree), 0,
--				NULL, gtk_cell_renderer_pixbuf_new(),
--					status_to_icon, NULL, NULL);
--	column = gtk_tree_view_get_column(GTK_TREE_VIEW(tree), 0);
--	gtk_tree_view_column_set_min_width(column, 24);
--
--	column = gtk_tree_view_column_new();
--	gtk_tree_view_column_set_expand(GTK_TREE_VIEW_COLUMN(column), TRUE);
--	gtk_tree_view_append_column(GTK_TREE_VIEW(tree), column);
--
--	renderer = gtk_cell_renderer_text_new();
--	gtk_tree_view_column_pack_start(column, renderer, TRUE);
--	gtk_tree_view_column_add_attribute(column, renderer,
--					"text", CONNMAN_COLUMN_NAME);
--
--	renderer = gtk_cell_renderer_pixbuf_new();
--	gtk_tree_view_column_pack_end(column, renderer, FALSE);
--	gtk_tree_view_column_set_cell_data_func(column, renderer,
--					security_to_icon, NULL, NULL);
--
--	tree_networks = tree;
--
--	selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree));
--	gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
--	g_signal_connect(G_OBJECT(selection), "changed",
--				G_CALLBACK(select_callback), NULL);
--
--	return mainbox;
--}
--
--static gboolean delete_callback(GtkWidget *window, GdkEvent *event,
--							gpointer user_data)
--{
--	gtk_widget_destroy(window);
--
--	gtk_main_quit();
--
--	return FALSE;
--}
--
--static void close_callback(GtkWidget *button, gpointer user_data)
--{
--	GtkWidget *window = user_data;
--
--	gtk_widget_destroy(window);
--
--	gtk_main_quit();
--}
--
--static GtkWidget *create_window(void)
--{
--	GtkWidget *window;
--	GtkWidget *vbox;
--	GtkWidget *hbox;
--	GtkWidget *notebook;
--	GtkWidget *buttonbox;
--	GtkWidget *button;
--	GtkWidget *widget;
--
--	window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
--	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
--	gtk_window_set_default_size(GTK_WINDOW(window), 580, 360);
--	g_signal_connect(G_OBJECT(window), "delete-event",
--					G_CALLBACK(delete_callback), NULL);
--
--	vbox = gtk_vbox_new(FALSE, 12);
--	gtk_container_set_border_width(GTK_CONTAINER(vbox), 12);
--	gtk_container_add(GTK_CONTAINER(window), vbox);
--
--	notebook = gtk_notebook_new();
--	gtk_notebook_set_show_tabs(GTK_NOTEBOOK(notebook), FALSE);
--	gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0);
--
--	buttonbox = gtk_hbutton_box_new();
--	gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox), GTK_BUTTONBOX_END);
--	gtk_box_pack_start(GTK_BOX(vbox), buttonbox, FALSE, FALSE, 0);
--
--	button = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
--	gtk_container_add(GTK_CONTAINER(buttonbox), button);
--	g_signal_connect(G_OBJECT(button), "clicked",
--					G_CALLBACK(close_callback), window);
--
--	hbox = gtk_hbox_new(FALSE, 0);
--	gtk_container_set_border_width(GTK_CONTAINER(hbox), 8);
--
--	widget = create_right();
--	gtk_widget_set_size_request(widget, 280, -1);
--	gtk_box_pack_end(GTK_BOX(hbox), widget, TRUE, TRUE, 0);
--
--	widget = create_left();
--	gtk_widget_set_size_request(widget, 260, -1);
--	gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0);
--
--	gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, NULL);
--
--	return window;
--}
--
--static GOptionEntry options[] = {
--	{ "fullscreen", 'f', 0, G_OPTION_ARG_NONE, &option_fullscreen,
--					"Start up in fullscreen mode" },
--	{ NULL },
--};
--
--int main(int argc, char *argv[])
--{
--	GError *error = NULL;
--	GtkWidget *window;
--
--	if (gtk_init_with_args(&argc, &argv, NULL,
--				options, NULL, &error) == FALSE) {
--		if (error != NULL) {
--			g_printerr("%s\n", error->message);
--			g_error_free(error);
--		} else
--			g_printerr("An unknown error occurred\n");
--
--		gtk_exit(1);
--	}
--
--	g_set_application_name("Connection Manager Demo");
--
--	gtk_window_set_default_icon_name("network-wireless");
--
--	client = connman_client_new();
--
--	window = create_window();
--
--	connman_client_set_callback(client, status_callback, NULL);
--
--	if (option_fullscreen == TRUE)
--		gtk_window_fullscreen(GTK_WINDOW(window));
--
--	gtk_widget_show_all(window);
--
--	gtk_main();
--
--	g_object_unref(client);
--
--	return 0;
--}
-diff --git a/common/test-client.c b/common/test-client.c
-deleted file mode 100644
-index a78823f..0000000
---- a/common/test-client.c
-+++ /dev/null
-@@ -1,227 +0,0 @@
--/*
-- *
-- *  Connection Manager
-- *
-- *  Copyright (C) 2008  Intel Corporation. All rights reserved.
-- *
-- *  This program is free software; you can redistribute it and/or modify
-- *  it under the terms of the GNU General Public License version 2 as
-- *  published by the Free Software Foundation.
-- *
-- *  This program is distributed in the hope that it will be useful,
-- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
-- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- *  GNU General Public License for more details.
-- *
-- *  You should have received a copy of the GNU General Public License
-- *  along with this program; if not, write to the Free Software
-- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-- *
-- */
--
--#ifdef HAVE_CONFIG_H
--#include <config.h>
--#endif
--
--#include <dbus/dbus-glib.h>
--#include <gtk/gtk.h>
--
--#include "connman-client.h"
--
--static ConnmanClient *client;
--
--static void proxy_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
--{
--	DBusGProxy *proxy;
--	gchar *markup;
--
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_PROXY, &proxy, -1);
--
--	markup = g_strdup_printf("<b>%s</b>\n"
--					"<span size=\"xx-small\">%s\n\n</span>",
--					dbus_g_proxy_get_interface(proxy),
--						dbus_g_proxy_get_path(proxy));
--	g_object_set(cell, "markup", markup, NULL);
--	g_free(markup);
--
--	g_object_unref(proxy);
--}
--
--static void name_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
--{
--	gchar *name, *icon;
--	guint type;
--	gchar *markup;
--
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_NAME, &name,
--					CONNMAN_COLUMN_ICON, &icon,
--					CONNMAN_COLUMN_TYPE, &type, -1);
--
--	markup = g_strdup_printf("Name: %s\nIcon: %s\nType: %d",
--							name, icon, type);
--	g_object_set(cell, "markup", markup, NULL);
--	g_free(markup);
--
--	g_free(icon);
--	g_free(name);
--}
--
--static void status_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
--{
--	gboolean enabled, inrange, remember;
--	gchar *markup;
--
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_ENABLED, &enabled,
--					CONNMAN_COLUMN_INRANGE, &inrange,
--					CONNMAN_COLUMN_REMEMBER, &remember, -1);
--
--	markup = g_strdup_printf("Enabled: %d\n"
--					"InRange: %d\nRemember: %d",
--						enabled, inrange, remember);
--	g_object_set(cell, "markup", markup, NULL);
--	g_free(markup);
--}
--
--static void network_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
--{
--	guint strength, security;
--	gchar *secret;
--	gchar *markup;
--
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_STRENGTH, &strength,
--					CONNMAN_COLUMN_SECURITY, &security,
--					CONNMAN_COLUMN_PASSPHRASE, &secret, -1);
--
--	markup = g_strdup_printf("Strength: %d\nSecurity: %d\nSecret: %s",
--						strength, security, secret);
--	g_object_set(cell, "markup", markup, NULL);
--	g_free(markup);
--
--	g_free(secret);
--}
--
--static GtkWidget *create_tree(void)
--{
--	GtkWidget *tree;
--	GtkTreeModel *model;
--	GtkTreeSelection *selection;
--
--	tree = gtk_tree_view_new();
--	gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree), TRUE);
--	gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tree), TRUE);
--
--	gtk_tree_view_insert_column_with_data_func(GTK_TREE_VIEW(tree), -1,
--				"Proxy", gtk_cell_renderer_text_new(),
--					proxy_to_text, NULL, NULL);
--
--	gtk_tree_view_insert_column_with_data_func(GTK_TREE_VIEW(tree), -1,
--				"Name", gtk_cell_renderer_text_new(),
--					name_to_text, NULL, NULL);
--
--	gtk_tree_view_insert_column_with_data_func(GTK_TREE_VIEW(tree), -1,
--				"Status", gtk_cell_renderer_text_new(),
--					status_to_text, NULL, NULL);
--
--	gtk_tree_view_insert_column_with_data_func(GTK_TREE_VIEW(tree), -1,
--				"Network", gtk_cell_renderer_text_new(),
--					network_to_text, NULL, NULL);
--
--	model = connman_client_get_model(client);
--	gtk_tree_view_set_model(GTK_TREE_VIEW(tree), model);
--	g_object_unref(model);
--
--	selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree));
--	gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
--
--	gtk_tree_view_expand_all(GTK_TREE_VIEW(tree));
--
--	return tree;
--}
--
--static gboolean delete_callback(GtkWidget *window, GdkEvent *event,
--							gpointer user_data)
--{
--	gtk_widget_destroy(window);
--
--	gtk_main_quit();
--
--	return FALSE;
--}
--
--static void close_callback(GtkWidget *button, gpointer user_data)
--{
--	GtkWidget *window = user_data;
--
--	gtk_widget_destroy(window);
--
--	gtk_main_quit();
--}
--
--static GtkWidget *create_window(void)
--{
--	GtkWidget *window;
--	GtkWidget *mainbox;
--	GtkWidget *tree;
--	GtkWidget *scrolled;
--	GtkWidget *buttonbox;
--	GtkWidget *button;
--	GtkTreeSelection *selection;
--
--	tree = create_tree();
--	selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree));
--
--	window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
--	gtk_window_set_title(GTK_WINDOW(window), "Client Test");
--	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
--	gtk_window_set_default_size(GTK_WINDOW(window), 800, 600);
--	g_signal_connect(G_OBJECT(window), "delete-event",
--					G_CALLBACK(delete_callback), NULL);
--
--	mainbox = gtk_vbox_new(FALSE, 12);
--	gtk_container_set_border_width(GTK_CONTAINER(mainbox), 12);
--	gtk_container_add(GTK_CONTAINER(window), mainbox);
--
--	scrolled = gtk_scrolled_window_new(NULL, NULL);
--	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled),
--				GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
--	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled),
--							GTK_SHADOW_OUT);
--	gtk_box_pack_start(GTK_BOX(mainbox), scrolled, TRUE, TRUE, 0);
--
--	buttonbox = gtk_hbutton_box_new();
--	gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox),
--						GTK_BUTTONBOX_END);
--	gtk_box_pack_end(GTK_BOX(mainbox), buttonbox, FALSE, FALSE, 0);
--
--	button = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
--	gtk_container_add(GTK_CONTAINER(buttonbox), button);
--	g_signal_connect(G_OBJECT(button), "clicked",
--					G_CALLBACK(close_callback), window);
--
--	gtk_container_add(GTK_CONTAINER(scrolled), tree);
--
--	gtk_widget_show_all(window);
--
--	return window;
--}
--
--int main(int argc, char *argv[])
--{
--	gtk_init(&argc, &argv);
--
--	client = connman_client_new();
--
--	gtk_window_set_default_icon_name("network-wireless");
--
--	create_window();
--
--	gtk_main();
--
--	g_object_unref(client);
--
--	return 0;
--}
-diff --git a/properties/Makefile.am b/properties/Makefile.am
-index ad2fd35..3a47ccf 100644
---- a/properties/Makefile.am
-+++ b/properties/Makefile.am
-@@ -1,8 +1,7 @@
- 
- bin_PROGRAMS = connman-properties
- 
--connman_properties_SOURCES = main.c advanced.h advanced.c \
--						ethernet.c wifi.c
-+connman_properties_SOURCES = main.c advanced.h ethernet.c wifi.c
- 
- connman_properties_LDADD = $(top_builddir)/common/libcommon.a \
- 						@GTK_LIBS@ @DBUS_LIBS@
-diff --git a/properties/advanced.c b/properties/advanced.c
-deleted file mode 100644
-index 1eb1c3d..0000000
---- a/properties/advanced.c
-+++ /dev/null
-@@ -1,314 +0,0 @@
--/*
-- *
-- *  Connection Manager
-- *
-- *  Copyright (C) 2008  Intel Corporation. All rights reserved.
-- *
-- *  This program is free software; you can redistribute it and/or modify
-- *  it under the terms of the GNU General Public License version 2 as
-- *  published by the Free Software Foundation.
-- *
-- *  This program is distributed in the hope that it will be useful,
-- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
-- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- *  GNU General Public License for more details.
-- *
-- *  You should have received a copy of the GNU General Public License
-- *  along with this program; if not, write to the Free Software
-- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-- *
-- */
--
--#ifdef HAVE_CONFIG_H
--#include <config.h>
--#endif
--
--#include <dbus/dbus-glib.h>
--#include <glib/gi18n.h>
--
--#include "connman-client.h"
--
--#include "advanced.h"
--
--gboolean separator_function(GtkTreeModel *model,
--					GtkTreeIter *iter, gpointer user_data)
--{
--	gchar *text;
--	gboolean result = FALSE;
--
--	gtk_tree_model_get(model, iter, 0, &text, -1);
--
--	if (text && *text == '\0')
--		result = TRUE;
--
--	g_free(text);
--
--	return result;
--}
--
--static void activate_callback(GtkWidget *button, gpointer user_data)
--{
--}
--
--static void changed_callback(GtkWidget *editable, gpointer user_data)
--{
--}
--
--static void add_network(GtkWidget *mainbox, struct config_data *data)
--{
--	GtkWidget *table;
--	GtkWidget *label;
--	GtkWidget *entry;
--	GtkWidget *combo;
--	GtkWidget *button;
--
--	table = gtk_table_new(3, 5, TRUE);
--	gtk_table_set_row_spacings(GTK_TABLE(table), 2);
--	gtk_table_set_col_spacings(GTK_TABLE(table), 8);
--	gtk_box_pack_start(GTK_BOX(mainbox), table, FALSE, FALSE, 0);
--
--	label = gtk_label_new(_("Network Name:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
--
--	combo = gtk_combo_box_entry_new_text();
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Guest");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Off");
--	gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(combo),
--					separator_function, NULL, NULL);
--	gtk_table_attach_defaults(GTK_TABLE(table), combo, 1, 3, 0, 1);
--	//data->network.name = combo;
--
--	label = gtk_label_new(_("Passphrase:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2);
--
--	entry = gtk_entry_new();
--	gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
--	gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 1, 2);
--	//data->network.passphrase = entry;
--
--	button = gtk_button_new_with_label(_("Activate"));
--	gtk_widget_set_sensitive(button, FALSE);
--	gtk_table_attach_defaults(GTK_TABLE(table), button, 1, 2, 2, 3);
--	//data->network.activate = button;
--
--	g_signal_connect(G_OBJECT(combo), "changed",
--				G_CALLBACK(changed_callback), data);
--
--	g_signal_connect(G_OBJECT(button), "clicked",
--				G_CALLBACK(activate_callback), data);
--}
--
--static void set_widgets(struct config_data *data, gboolean label,
--					gboolean value, gboolean entry)
--{
--	int i;
--
--	for (i = 0; i < 3; i++) {
--		if (label == TRUE)
--			gtk_widget_show(data->ipv4.label[i]);
--		else
--			gtk_widget_hide(data->ipv4.label[i]);
--
--		if (value == TRUE)
--			gtk_widget_show(data->ipv4.value[i]);
--		else
--			gtk_widget_hide(data->ipv4.value[i]);
--
--		if (entry == TRUE)
--			gtk_widget_show(data->ipv4.entry[i]);
--		else
--			gtk_widget_hide(data->ipv4.entry[i]);
--	}
--}
--
--static void config_callback(GtkWidget *widget, gpointer user_data)
--{
--	gint active;
--
--	active = gtk_combo_box_get_active(GTK_COMBO_BOX(widget));
--}
--
--static void add_config(GtkWidget *mainbox, struct config_data *data)
--{
--	GtkWidget *table;
--	GtkWidget *label;
--	GtkWidget *entry;
--	GtkWidget *combo;
--
--	table = gtk_table_new(5, 5, TRUE);
--	gtk_table_set_row_spacings(GTK_TABLE(table), 2);
--	gtk_table_set_col_spacings(GTK_TABLE(table), 8);
--	gtk_box_pack_start(GTK_BOX(mainbox), table, FALSE, FALSE, 0);
--
--	label = gtk_label_new(_("Configure IPv4:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
--
--	combo = gtk_combo_box_new_text();
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Using DHCP");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Manually");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Off");
--	gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(combo),
--					separator_function, NULL, NULL);
--	gtk_table_attach_defaults(GTK_TABLE(table), combo, 1, 3, 0, 1);
--	data->ipv4.config = combo;
--
--	label = gtk_label_new(_("IP Address:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
--	gtk_widget_set_no_show_all(label, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2);
--	data->ipv4.label[0] = label;
--
--	label = gtk_label_new(NULL);
--	gtk_label_set_selectable(GTK_LABEL(label), TRUE);
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
--	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
--	gtk_widget_set_no_show_all(label, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 3, 1, 2);
--	data->ipv4.value[0] = label;
--
--	entry = gtk_entry_new();
--	gtk_widget_set_no_show_all(entry, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 1, 2);
--	data->ipv4.entry[0] = entry;
--
--	label = gtk_label_new(_("Subnet Mask:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
--	gtk_widget_set_no_show_all(label, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3);
--	data->ipv4.label[1] = label;
--
--	label = gtk_label_new(NULL);
--	gtk_label_set_selectable(GTK_LABEL(label), TRUE);
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
--	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
--	gtk_widget_set_no_show_all(label, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 3, 2, 3);
--	data->ipv4.value[1] = label;
--
--	entry = gtk_entry_new();
--	gtk_widget_set_no_show_all(entry, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 2, 3);
--	data->ipv4.entry[1] = entry;
--
--	label = gtk_label_new(_("Router:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
--	gtk_widget_set_no_show_all(label, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 3, 4);
--	data->ipv4.label[2] = label;
--
--	label = gtk_label_new(NULL);
--	gtk_label_set_selectable(GTK_LABEL(label), TRUE);
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
--	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
--	gtk_widget_set_no_show_all(label, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 3, 3, 4);
--	data->ipv4.value[2] = label;
--
--	entry = gtk_entry_new();
--	gtk_widget_set_no_show_all(entry, TRUE);
--	gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 3, 4);
--	data->ipv4.entry[2] = entry;
--
--	gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
--	set_widgets(data, TRUE, TRUE, FALSE);
--
--	g_signal_connect(G_OBJECT(combo), "changed",
--					G_CALLBACK(config_callback), data);
--}
--
--static void delete_callback(GtkWidget *window, GdkEvent *event,
--							gpointer user_data)
--{
--	gtk_widget_hide(window);
--}
--
--static void close_callback(GtkWidget *button, gpointer user_data)
--{
--	GtkWidget *window = user_data;
--
--	gtk_widget_hide(window);
--}
--
--void create_advanced_dialog(struct config_data *data, guint type)
--{
--	GtkWidget *dialog;
--	GtkWidget *vbox;
--	GtkWidget *notebook;
--	GtkWidget *buttonbox;
--	GtkWidget *button;
--	GtkWidget *widget;
--
--	dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL);
--	gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
--	gtk_window_set_transient_for(GTK_WINDOW(dialog),
--						GTK_WINDOW(data->window));
--	gtk_window_set_title(GTK_WINDOW(dialog), _("Advanced Settings"));
--	gtk_window_set_position(GTK_WINDOW(dialog),
--					GTK_WIN_POS_CENTER_ON_PARENT);
--	gtk_window_set_default_size(GTK_WINDOW(dialog), 460, 320);
--	g_signal_connect(G_OBJECT(dialog), "delete-event",
--					G_CALLBACK(delete_callback), NULL);
--
--	vbox = gtk_vbox_new(FALSE, 12);
--	gtk_container_set_border_width(GTK_CONTAINER(vbox), 12);
--	gtk_container_add(GTK_CONTAINER(dialog), vbox);
--
--	notebook = gtk_notebook_new();
--	gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0);
--
--	buttonbox = gtk_hbutton_box_new();
--	gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox), GTK_BUTTONBOX_END);
--	gtk_box_set_spacing(GTK_BOX(buttonbox), 6);
--	gtk_box_pack_start(GTK_BOX(vbox), buttonbox, FALSE, FALSE, 0);
--
--	button = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
--	gtk_container_add(GTK_CONTAINER(buttonbox), button);
--	g_signal_connect(G_OBJECT(button), "clicked",
--					G_CALLBACK(close_callback), dialog);
--
--	button = gtk_button_new_from_stock(GTK_STOCK_OK);
--	gtk_container_add(GTK_CONTAINER(buttonbox), button);
--	g_signal_connect(G_OBJECT(button), "clicked",
--					G_CALLBACK(close_callback), dialog);
--
--	if (type == CONNMAN_TYPE_WIFI) {
--		widget = gtk_vbox_new(FALSE, 24);
--		gtk_container_set_border_width(GTK_CONTAINER(widget), 24);
--		gtk_notebook_append_page(GTK_NOTEBOOK(notebook), widget, NULL);
--		gtk_notebook_set_tab_label_text(GTK_NOTEBOOK(notebook),
--							widget, _("Wireless"));
--		add_network(widget, data);
--	}
--
--	widget = gtk_vbox_new(FALSE, 24);
--	gtk_container_set_border_width(GTK_CONTAINER(widget), 24);
--	gtk_notebook_append_page(GTK_NOTEBOOK(notebook), widget, NULL);
--	gtk_notebook_set_tab_label_text(GTK_NOTEBOOK(notebook),
--						widget, _("TCP/IP"));
--	add_config(widget, data);
--
--	widget = gtk_label_new(NULL);
--	gtk_notebook_append_page(GTK_NOTEBOOK(notebook), widget, NULL);
--	gtk_notebook_set_tab_label_text(GTK_NOTEBOOK(notebook),
--						widget, _("DNS"));
--
--	if (type == CONNMAN_TYPE_ETHERNET) {
--		widget = gtk_label_new(NULL);
--		gtk_notebook_append_page(GTK_NOTEBOOK(notebook), widget, NULL);
--		gtk_notebook_set_tab_label_text(GTK_NOTEBOOK(notebook),
--							widget, _("Ethernet"));
--	}
--
--	data->dialog = dialog;
--}
-diff --git a/properties/advanced.h b/properties/advanced.h
-index f85f10d..42b439f 100644
---- a/properties/advanced.h
-+++ b/properties/advanced.h
-@@ -23,6 +23,7 @@ struct config_data {
- 	ConnmanClient *client;
- 
- 	GtkWidget *widget;
-+	GtkWidget *table;
- 	GtkWidget *title;
- 	GtkWidget *label;
- 	GtkWidget *button;
-@@ -45,15 +46,34 @@ struct config_data {
- 		GtkWidget *value[3];
- 		GtkWidget *entry[3];
- 	} ipv4;
--};
- 
--void create_advanced_dialog(struct config_data *data, guint type);
-+	struct ipv4_config ipv4_config;
-+
-+	struct {
-+		GtkWidget *name;
-+		GtkWidget *security;
-+		GtkWidget *strength;
-+		GtkWidget *passphrase;
-+		GtkWidget *connect_info;
-+		GtkWidget *connect;
-+		GtkWidget *disconnect;
-+	} wifi;
- 
--void add_ethernet_policy(GtkWidget *mainbox, struct config_data *data);
--void update_ethernet_policy(struct config_data *data, guint policy);
-+	GtkWidget *ethernet_button;
-+	GtkWidget *wifi_button;
- 
--void add_wifi_policy(GtkWidget *mainbox, struct config_data *data);
-+	GtkWidget *scan_button;
-+	GtkWidget *offline_button;
-+};
-+
-+void add_ethernet_policy(GtkWidget *mainbox, GtkTreeIter *iter, struct config_data *data);
-+void update_ethernet_ipv4(struct config_data *data, guint policy);
-+
-+void add_wifi_policy(GtkWidget *mainbox, GtkTreeIter *iter, struct config_data *data);
- void update_wifi_policy(struct config_data *data, guint policy);
- 
--gboolean separator_function(GtkTreeModel *model,
--					GtkTreeIter *iter, gpointer user_data);
-+void add_ethernet_switch_button(GtkWidget *mainbox, GtkTreeIter *iter,
-+				struct config_data *data);
-+
-+void add_wifi_switch_button(GtkWidget *mainbox, GtkTreeIter *iter,
-+				struct config_data *data);
-diff --git a/properties/ethernet.c b/properties/ethernet.c
-index d5c948d..d443ca1 100644
---- a/properties/ethernet.c
-+++ b/properties/ethernet.c
-@@ -23,6 +23,7 @@
- #include <config.h>
- #endif
- 
-+#include <dbus/dbus-glib.h>
- #include <glib/gi18n.h>
- #include <gtk/gtk.h>
- 
-@@ -30,93 +31,220 @@
- 
- #include "advanced.h"
- 
-+static gboolean separator_function(GtkTreeModel *model,
-+					GtkTreeIter *iter, gpointer user_data)
-+{
-+	gchar *text;
-+	gboolean result = FALSE;
-+
-+	gtk_tree_model_get(model, iter, 0, &text, -1);
-+
-+	if (text && *text == '\0')
-+		result = TRUE;
-+
-+	g_free(text);
-+
-+	return result;
-+}
-+
- static void changed_callback(GtkWidget *editable, gpointer user_data)
- {
- 	struct config_data *data = user_data;
- 	gint active;
- 
- 	active = gtk_combo_box_get_active(GTK_COMBO_BOX(data->policy.config));
-+	update_ethernet_ipv4(data, active);
-+}
- 
--	switch (active) {
--	case 0:
--		connman_client_set_policy(data->client, data->device, "auto");
--		update_ethernet_policy(data, CONNMAN_POLICY_AUTO);
--		break;
--	case 1:
--		connman_client_set_policy(data->client, data->device, "ignore");
--		update_ethernet_policy(data, CONNMAN_POLICY_IGNORE);
--		break;
--	case 3:
--		connman_client_set_policy(data->client, data->device, "off");
--		update_ethernet_policy(data, CONNMAN_POLICY_OFF);
--		break;
--	}
-+static void apply_callback(GtkWidget *editable, gpointer user_data)
-+{
-+	struct config_data *data = user_data;
-+	gint active;
-+
-+	active = gtk_combo_box_get_active(GTK_COMBO_BOX(data->policy.config));
-+	data->ipv4_config.method = active ? "manual" : "dhcp";
-+	data->ipv4_config.address = active ? gtk_entry_get_text(GTK_ENTRY(data->ipv4.entry[0])) : NULL;
-+	data->ipv4_config.netmask = active ? gtk_entry_get_text(GTK_ENTRY(data->ipv4.entry[1])) : NULL;
-+	data->ipv4_config.gateway = active ? gtk_entry_get_text(GTK_ENTRY(data->ipv4.entry[2])) : NULL;
-+
-+	connman_client_set_ipv4(data->client, data->device, &data->ipv4_config);
-+}
-+
-+static void switch_callback(GtkWidget *editable, gpointer user_data)
-+{
-+	struct config_data *data = user_data;
-+	const gchar *label = gtk_button_get_label(GTK_BUTTON(data->ethernet_button));
-+	if (g_str_equal(label, "Disable"))
-+		connman_client_disable_technology(data->client, data->device, "ethernet");
-+	else if (g_str_equal(label, "Enable"))
-+		connman_client_enable_technology(data->client, data->device, "ethernet");
- }
- 
--void add_ethernet_policy(GtkWidget *mainbox, struct config_data *data)
-+void add_ethernet_switch_button(GtkWidget *mainbox, GtkTreeIter *iter,
-+				struct config_data *data)
-+{
-+	GtkWidget *vbox;
-+	GtkWidget *table;
-+	GtkWidget *label;
-+	GtkWidget *buttonbox;
-+	GtkWidget *button;
-+	gboolean ethernet_enabled;
-+
-+	gtk_tree_model_get(data->model, iter,
-+			CONNMAN_COLUMN_ETHERNET_ENABLED, &ethernet_enabled,
-+			-1);
-+
-+	vbox = gtk_vbox_new(TRUE, 0);
-+	gtk_container_set_border_width(GTK_CONTAINER(vbox), 24);
-+	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
-+
-+	table = gtk_table_new(1, 1, TRUE);
-+	gtk_table_set_row_spacings(GTK_TABLE(table), 10);
-+	gtk_table_set_col_spacings(GTK_TABLE(table), 10);
-+	gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
-+
-+	label = gtk_label_new(_("Enable/Disable Wired Networks."));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
-+
-+	buttonbox = gtk_hbutton_box_new();
-+	gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox), GTK_BUTTONBOX_CENTER);
-+	gtk_box_pack_start(GTK_BOX(mainbox), buttonbox, FALSE, FALSE, 0);
-+
-+	button = gtk_button_new();
-+	data->ethernet_button = button;
-+
-+	if (ethernet_enabled)
-+		gtk_button_set_label(GTK_BUTTON(button), _("Disable"));
-+	else
-+		gtk_button_set_label(GTK_BUTTON(button), _("Enable"));
-+
-+	gtk_container_add(GTK_CONTAINER(buttonbox), button);
-+	g_signal_connect(G_OBJECT(button), "clicked",
-+			G_CALLBACK(switch_callback), data);
-+}
-+
-+void add_ethernet_policy(GtkWidget *mainbox, GtkTreeIter *iter, struct config_data *data)
- {
- 	GtkWidget *vbox;
- 	GtkWidget *table;
- 	GtkWidget *label;
- 	GtkWidget *combo;
-+	GtkWidget *entry;
-+	GtkWidget *button;
-+
-+	struct ipv4_config ipv4_config = {
-+		.method  = NULL,
-+		.address = NULL,
-+		.netmask = NULL,
-+		.gateway = NULL,
-+	};
-+
-+	gtk_tree_model_get(data->model, iter,
-+			CONNMAN_COLUMN_METHOD, &ipv4_config.method,
-+			CONNMAN_COLUMN_ADDRESS, &ipv4_config.address,
-+			CONNMAN_COLUMN_NETMASK, &ipv4_config.netmask,
-+			CONNMAN_COLUMN_GATEWAY, &ipv4_config.gateway,
-+			-1);
- 
--	vbox = gtk_vbox_new(FALSE, 0);
-+	vbox = gtk_vbox_new(TRUE, 0);
- 	gtk_container_set_border_width(GTK_CONTAINER(vbox), 24);
- 	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
- 
--	table = gtk_table_new(2, 4, FALSE);
--	gtk_table_set_row_spacings(GTK_TABLE(table), 8);
--	gtk_table_set_col_spacings(GTK_TABLE(table), 8);
-+	table = gtk_table_new(5, 5, TRUE);
-+	gtk_table_set_row_spacings(GTK_TABLE(table), 10);
-+	gtk_table_set_col_spacings(GTK_TABLE(table), 10);
- 	gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
- 
- 	label = gtk_label_new(_("Configuration:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 0, 1);
- 
- 	combo = gtk_combo_box_new_text();
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Automatically");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Ignore Interface");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Off");
-+	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "DHCP");
-+	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Manual");
- 	gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(combo),
--					separator_function, NULL, NULL);
--	gtk_table_attach_defaults(GTK_TABLE(table), combo, 1, 4, 0, 1);
-+			separator_function, NULL, NULL);
-+
-+	gtk_table_attach_defaults(GTK_TABLE(table), combo, 2, 4, 0, 1);
- 	data->policy.config = combo;
- 
--	label = gtk_label_new(NULL);
--	gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
--	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 4, 1, 2);
--	gtk_widget_set_size_request(label, 180, -1);
--	data->policy.label = label;
-+	label = gtk_label_new(_("IP address:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 1, 2);
-+	data->ipv4.label[0] = label;
-+
-+	entry = gtk_entry_new();
-+	gtk_entry_set_max_length (GTK_ENTRY (entry), 15);
-+	if (ipv4_config.address)
-+		gtk_entry_set_text(GTK_ENTRY(entry), ipv4_config.address);
-+	gtk_table_attach_defaults(GTK_TABLE(table), entry, 2, 4, 1, 2);
-+	data->ipv4.entry[0] = entry;
-+
-+	label = gtk_label_new(_("Netmask:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 2, 3);
-+	data->ipv4.label[1] = label;
-+
-+	entry = gtk_entry_new();
-+	gtk_entry_set_max_length (GTK_ENTRY (entry), 15);
-+	if (ipv4_config.netmask)
-+		gtk_entry_set_text(GTK_ENTRY(entry), ipv4_config.netmask);
-+	gtk_table_attach_defaults(GTK_TABLE(table), entry, 2, 4, 2, 3);
-+	data->ipv4.entry[1] = entry;
-+
-+	label = gtk_label_new(_("Gateway:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 3, 4);
-+	data->ipv4.label[2] = label;
-+
-+	entry = gtk_entry_new();
-+	gtk_entry_set_max_length (GTK_ENTRY (entry), 15);
-+	if (ipv4_config.gateway)
-+		gtk_entry_set_text(GTK_ENTRY(entry), ipv4_config.gateway);
-+	gtk_table_attach_defaults(GTK_TABLE(table), entry, 2, 4, 3, 4);
-+	data->ipv4.entry[2] = entry;
-+
-+	data->ipv4_config = ipv4_config;
-+
-+	button = gtk_button_new_with_label(_("Apply"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), button, 3, 4, 4, 5);
-+	g_signal_connect(G_OBJECT(button), "clicked",
-+			G_CALLBACK(apply_callback), data);
-+
-+	data->button = button;
-+
-+	if (g_str_equal(ipv4_config.method, "dhcp") == TRUE)
-+		update_ethernet_ipv4(data, CONNMAN_POLICY_DHCP);
-+	else
-+		update_ethernet_ipv4(data, CONNMAN_POLICY_MANUAL);
- 
- 	g_signal_connect(G_OBJECT(combo), "changed",
--				G_CALLBACK(changed_callback), data);
-+			G_CALLBACK(changed_callback), data);
- }
- 
--void update_ethernet_policy(struct config_data *data, guint policy)
-+void update_ethernet_ipv4(struct config_data *data, guint policy)
- {
- 	GtkWidget *combo = data->policy.config;
--	gchar *info = NULL;
-+	GtkWidget *entry[3];
-+	int i;
-+
-+	for (i = 0; i < 3; i++)
-+		entry[i] = data->ipv4.entry[i];
- 
- 	g_signal_handlers_block_by_func(G_OBJECT(combo),
--					G_CALLBACK(changed_callback), data);
-+			G_CALLBACK(changed_callback), data);
- 
- 	switch (policy) {
--	case CONNMAN_POLICY_OFF:
--		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 3);
-+	case CONNMAN_POLICY_DHCP:
-+		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
-+		for (i = 0; i < 3; i++) {
-+			gtk_entry_set_editable(GTK_ENTRY(entry[i]), 0);
-+			gtk_widget_set_sensitive(entry[i], 0);
-+			gtk_entry_set_text(GTK_ENTRY(entry[i]), _(""));
-+		}
- 		break;
--	case CONNMAN_POLICY_IGNORE:
-+	case CONNMAN_POLICY_MANUAL:
- 		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 1);
--		info = g_strdup_printf(_("Ignore the interface and don't "
--				"make any attempts for configuration."));
--		break;
--	case CONNMAN_POLICY_AUTO:
--		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
--		info = g_strdup_printf(_("Detect carrier and then "
--				"automatically configure the interface."));
-+		for (i = 0; i < 3; i++) {
-+			gtk_entry_set_editable(GTK_ENTRY(entry[i]), 1);
-+			gtk_widget_set_sensitive(entry[i], 1);
-+		}
- 		break;
- 	default:
- 		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), -1);
-@@ -124,9 +252,5 @@ void update_ethernet_policy(struct config_data *data, guint policy)
- 	}
- 
- 	g_signal_handlers_unblock_by_func(G_OBJECT(combo),
--					G_CALLBACK(changed_callback), data);
--
--	gtk_label_set_markup(GTK_LABEL(data->policy.label), info);
--
--	g_free(info);
-+			G_CALLBACK(changed_callback), data);
- }
-diff --git a/properties/main.c b/properties/main.c
-index 01439e6..6b389bc 100644
---- a/properties/main.c
-+++ b/properties/main.c
-@@ -32,103 +32,139 @@
- 
- static ConnmanClient *client;
- static GtkWidget *interface_notebook;
-+static struct config_data *current_data;
- 
--static void update_status(struct config_data *data,
--				guint type, gboolean inrange, guint policy,
--				const gchar *network, const gchar *address)
-+static void status_update(GtkTreeModel *model, GtkTreePath  *path,
-+		GtkTreeIter  *iter, gpointer user_data)
- {
--	const char *str;
--	gchar *markup, *info = NULL;
- 
--	switch (type) {
--	case CONNMAN_TYPE_ETHERNET:
--		if (inrange == TRUE) {
--			str = N_("Connected");
--			info = g_strdup_printf(_("%s is currently active "
--						"and has the IP address %s."),
--						N_("Ethernet"), address);
--		} else {
--			str = N_("Cable Unplugged");
--			info = g_strdup_printf(_("The cable for %s is "
--					"not plugged in."), N_("Ethernet"));
--		}
--		break;
-+	struct config_data *data = user_data;
-+	guint type;
-+	const char *name = NULL, *_name = NULL, *state = NULL;
-+	gboolean ethernet_enabled;
-+	gboolean wifi_enabled;
-+	gboolean offline_mode;
- 
--	case CONNMAN_TYPE_WIFI:
--		if (inrange == TRUE) {
--			str = N_("Connected");
--			info = g_strdup_printf(_("%s is currently active "
--						"and has the IP address %s."),
--						N_("Wireless"), address);
--		} else
--			str = N_("Not Connected");
--		break;
-+	gtk_tree_model_get(model, iter,
-+			CONNMAN_COLUMN_STATE, &state,
-+			CONNMAN_COLUMN_NAME, &name,
-+			CONNMAN_COLUMN_TYPE, &type,
-+			CONNMAN_COLUMN_ETHERNET_ENABLED, &ethernet_enabled, 
-+			CONNMAN_COLUMN_WIFI_ENABLED, &wifi_enabled, 
-+			CONNMAN_COLUMN_OFFLINEMODE, &offline_mode, 
-+			-1);
-+
-+	if (type == CONNMAN_TYPE_WIFI) {
-+		if (data->wifi.name)
-+			_name = gtk_label_get_text(GTK_LABEL(data->wifi.name));
-+
-+		if (!(name && _name && g_str_equal(name, _name)))
-+			return;
- 
--	default:
--		if (inrange == TRUE)
--			str = N_("Connected");
-+		if (g_str_equal(state, "failure") == TRUE) {
-+			gtk_label_set_text(GTK_LABEL(data->wifi.connect_info),
-+					_("connection failed"));
-+			gtk_widget_show(data->wifi.connect_info);
-+			gtk_widget_show(data->wifi.connect);
-+			gtk_widget_hide(data->wifi.disconnect);
-+		} else if (g_str_equal(state, "idle") == TRUE) {
-+			gtk_widget_hide(data->wifi.connect_info);
-+			gtk_widget_show(data->wifi.connect);
-+			gtk_widget_hide(data->wifi.disconnect);
-+		} else {
-+			gtk_widget_hide(data->wifi.connect_info);
-+			gtk_widget_hide(data->wifi.connect);
-+			gtk_widget_show(data->wifi.disconnect);
-+		}
-+	} else if (type == CONNMAN_TYPE_LABEL_ETHERNET) {
-+		if (!data->ethernet_button)
-+			return;
-+		if (ethernet_enabled)
-+			gtk_button_set_label(GTK_BUTTON(data->ethernet_button), _("Disable"));
- 		else
--			str = N_("Not Connected");
--		break;
-+			gtk_button_set_label(GTK_BUTTON(data->ethernet_button), _("Enable"));
-+	} else if (type == CONNMAN_TYPE_LABEL_WIFI) {
-+		if (!data->wifi_button)
-+			return;
-+		if (wifi_enabled) {
-+			gtk_button_set_label(GTK_BUTTON(data->wifi_button), _("Disable"));
-+			gtk_widget_set_sensitive(data->scan_button, 1);
-+		} else {
-+			gtk_button_set_label(GTK_BUTTON(data->wifi_button), _("Enable"));
-+			gtk_widget_set_sensitive(data->scan_button, 0);
-+		}
-+	} else if (type == CONNMAN_TYPE_SYSCONFIG) {
-+		if (!data->offline_button)
-+			return;
-+		if (offline_mode)
-+			gtk_button_set_label(GTK_BUTTON(data->offline_button), _("OnlineMode"));
-+		else
-+			gtk_button_set_label(GTK_BUTTON(data->offline_button), _("OfflineMode"));
- 	}
-+}
- 
--	markup = g_strdup_printf("<b>%s</b>", str);
--	gtk_label_set_markup(GTK_LABEL(data->title), markup);
--	g_free(markup);
--
--	gtk_label_set_markup(GTK_LABEL(data->label), info);
--
--	g_free(info);
--
--	switch (type) {
--	case CONNMAN_TYPE_ETHERNET:
--		update_ethernet_policy(data, policy);
--		break;
--	case CONNMAN_TYPE_WIFI:
--		update_wifi_policy(data, policy);
--		break;
--	default:
--		break;
--	}
-+static void set_offline_callback(GtkWidget *button, gpointer user_data)
-+{
-+	struct config_data *data = user_data;
-+	const gchar *label = gtk_button_get_label(GTK_BUTTON(data->offline_button));
-+	if (g_str_equal(label, "OnlineMode"))
-+		connman_client_set_offlinemode(client, 0);
-+	else if (g_str_equal(label, "OfflineMode"))
-+		connman_client_set_offlinemode(client, 1);
- }
- 
--static void update_config(struct config_data *data)
-+static void add_system_config(GtkWidget *mainbox, GtkTreeIter *iter,
-+		struct config_data *data)
- {
--	GtkTreeIter iter;
--	guint type;
--	gchar *network;
-+	GtkWidget *vbox;
-+	GtkWidget *table;
-+	GtkWidget *label;
-+	GtkWidget *buttonbox;
-+	GtkWidget *button;
-+	gboolean offline_mode;
- 
--	if (gtk_tree_model_get_iter_from_string(data->model,
--						&iter, data->index) == FALSE)
--		return;
-+	vbox = gtk_vbox_new(TRUE, 0);
-+	gtk_container_set_border_width(GTK_CONTAINER(vbox), 24);
-+	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
- 
--	gtk_tree_model_get(data->model, &iter,
--				CONNMAN_COLUMN_TYPE, &type,
--				CONNMAN_COLUMN_NAME, &network, -1);
-+	table = gtk_table_new(1, 1, TRUE);
-+	gtk_table_set_row_spacings(GTK_TABLE(table), 10);
-+	gtk_table_set_col_spacings(GTK_TABLE(table), 10);
-+	gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
- 
--	g_free(network);
--}
-+	label = gtk_label_new(_("System Configuration"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
- 
--static void advanced_callback(GtkWidget *button, gpointer user_data)
--{
--	struct config_data *data = user_data;
-+	buttonbox = gtk_hbutton_box_new();
-+	gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox), GTK_BUTTONBOX_CENTER);
-+	gtk_box_pack_start(GTK_BOX(mainbox), buttonbox, FALSE, FALSE, 0);
-+
-+	gtk_tree_model_get(data->model, iter,
-+			CONNMAN_COLUMN_OFFLINEMODE, &offline_mode,
-+			-1);
-+
-+	button = gtk_button_new();
-+	data->offline_button = button;
-+	if (offline_mode)
-+		gtk_button_set_label(GTK_BUTTON(button), _("OnlineMode"));
-+	else
-+		gtk_button_set_label(GTK_BUTTON(button), _("OfflineMode"));
- 
--	gtk_widget_show_all(data->dialog);
-+	gtk_container_add(GTK_CONTAINER(buttonbox), button);
-+	g_signal_connect(G_OBJECT(button), "clicked",
-+			G_CALLBACK(set_offline_callback), data);
- }
- 
- static struct config_data *create_config(GtkTreeModel *model,
--					GtkTreeIter *iter, gpointer user_data)
-+		GtkTreeIter *iter, gpointer user_data)
- {
- 	GtkWidget *mainbox;
- 	GtkWidget *label;
- 	GtkWidget *hbox;
--	GtkWidget *button;
- 	struct config_data *data;
- 	DBusGProxy *proxy;
--	guint type, policy;
--	gboolean inrange;
--	gchar *markup, *vendor = NULL, *product = NULL;
--	gchar *network = NULL, *address = NULL;
-+	guint type;
-+	char *state = NULL;
- 
- 	data = g_try_new0(struct config_data, 1);
- 	if (data == NULL)
-@@ -137,15 +173,10 @@ static struct config_data *create_config(GtkTreeModel *model,
- 	data->client = client;
- 
- 	gtk_tree_model_get(model, iter,
--				CONNMAN_COLUMN_PROXY, &proxy,
--				CONNMAN_COLUMN_TYPE, &type,
--				CONNMAN_COLUMN_INRANGE, &inrange,
--				CONNMAN_COLUMN_NETWORK, &network,
--				CONNMAN_COLUMN_ADDRESS, &address,
--				CONNMAN_COLUMN_POLICY, &policy, -1);
--
--	data->device = g_strdup(dbus_g_proxy_get_path(proxy));
--	g_object_unref(proxy);
-+			CONNMAN_COLUMN_PROXY, &proxy,
-+			CONNMAN_COLUMN_TYPE, &type,
-+			CONNMAN_COLUMN_STATE, &state,
-+			-1);
- 
- 	mainbox = gtk_vbox_new(FALSE, 6);
- 	data->widget = mainbox;
-@@ -163,12 +194,27 @@ static struct config_data *create_config(GtkTreeModel *model,
- 	gtk_box_pack_start(GTK_BOX(mainbox), label, FALSE, FALSE, 0);
- 	data->label = label;
- 
-+	data->window = user_data;
-+	data->model = model;
-+	data->index = gtk_tree_model_get_string_from_iter(model, iter);
-+	data->device = g_strdup(dbus_g_proxy_get_path(proxy));
-+	g_object_unref(proxy);
-+
- 	switch (type) {
- 	case CONNMAN_TYPE_ETHERNET:
--		add_ethernet_policy(mainbox, data);
-+		add_ethernet_policy(mainbox, iter, data);
- 		break;
- 	case CONNMAN_TYPE_WIFI:
--		add_wifi_policy(mainbox, data);
-+		add_wifi_policy(mainbox, iter, data);
-+		break;
-+	case CONNMAN_TYPE_LABEL_ETHERNET:
-+		add_ethernet_switch_button(mainbox, iter, data);
-+		break;
-+	case CONNMAN_TYPE_LABEL_WIFI:
-+		add_wifi_switch_button(mainbox, iter, data);
-+		break;
-+	case CONNMAN_TYPE_SYSCONFIG:
-+		add_system_config(mainbox, iter, data);
- 		break;
- 	default:
- 		break;
-@@ -183,34 +229,10 @@ static struct config_data *create_config(GtkTreeModel *model,
- 	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0);
- 	gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0);
- 
--	markup = g_strdup_printf("%s\n<small>%s</small>",
--			vendor ? vendor : "", product ? product : "");
--	gtk_label_set_markup(GTK_LABEL(label), markup);
--	g_free(markup);
--
--	if (0) {
--		button = gtk_button_new_with_label(_("Advanced..."));
--		gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
--		g_signal_connect(G_OBJECT(button), "clicked",
--				G_CALLBACK(advanced_callback), data);
--		data->button = button;
--	}
--
--	data->window = user_data;
--	create_advanced_dialog(data, type);
--
--	update_status(data, type, inrange, policy, network, address);
--
--	g_free(network);
--	g_free(address);
--
--	data->model = model;
--	data->index = gtk_tree_model_get_string_from_iter(model, iter);
--
- 	gtk_widget_show_all(mainbox);
- 
--	g_free(product);
--	g_free(vendor);
-+	g_signal_connect(G_OBJECT(model), "row-changed",
-+			G_CALLBACK(status_update), data);
- 
- 	return data;
- }
-@@ -230,112 +252,108 @@ static void select_callback(GtkTreeSelection *selection, gpointer user_data)
- 		return;
- 	}
- 
--	if (data == NULL) {
--		data = create_config(model, &iter, user_data);
--		if (data == NULL)
--			return;
-+	if (current_data) {
-+		g_signal_handlers_disconnect_by_func(G_OBJECT(model),
-+				G_CALLBACK(status_update), current_data);
-+		g_free(current_data);
-+	}
-+	data = create_config(model, &iter, user_data);
-+	if (data == NULL)
-+		return;
- 
--		page = gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
--							data->widget, NULL);
--	} else {
--		update_config(data);
-+	current_data = data;
- 
--		page = gtk_notebook_page_num(GTK_NOTEBOOK(notebook),
--								data->widget);
--	}
-+	page = gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
-+				data->widget, NULL);
- 
- 	gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), page);
--
- 	gtk_widget_show(notebook);
- }
- 
--static void row_changed(GtkTreeModel *model, GtkTreePath  *path,
--				GtkTreeIter  *iter, gpointer user_data)
-+static void device_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
-+		GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
- {
- 	guint type;
--	gboolean powered, inrange;
-+	char *markup, *name, *state;
-+	const char *title;
- 
- 	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_TYPE, &type,
--					CONNMAN_COLUMN_ENABLED, &powered,
--					CONNMAN_COLUMN_INRANGE, &inrange, -1);
--}
--
--static void state_to_icon(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
--{
--	gboolean inrange;
--
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_INRANGE, &inrange, -1);
--
--	if (inrange == TRUE)
--		g_object_set(cell, "icon-name", GTK_STOCK_YES, NULL);
--	else
--		g_object_set(cell, "icon-name", NULL, NULL);
--}
--
--static void type_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
--{
--	guint type;
--	gboolean powered, inrange;
--	gchar *markup;
--	const char *title, *info;
--
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_TYPE, &type,
--					CONNMAN_COLUMN_ENABLED, &powered,
--					CONNMAN_COLUMN_INRANGE, &inrange, -1);
-+			CONNMAN_COLUMN_NAME, &name,
-+			CONNMAN_COLUMN_STATE, &state,
-+			-1);
- 
- 	switch (type) {
- 	case CONNMAN_TYPE_ETHERNET:
- 		title = N_("Ethernet");
-+		markup = g_strdup_printf("  %s\n", title);
- 		break;
- 	case CONNMAN_TYPE_WIFI:
--		title = N_("Wireless");
-+		/* Show the AP name */
-+		title = N_(name);
-+		if (g_str_equal(state, "association") == TRUE)
-+			state = "associating...";
-+		else if (g_str_equal(state, "configuration") == TRUE)
-+			state = "configurating...";
-+		else if (g_str_equal(state, "ready") == TRUE ||
-+			 g_str_equal(state, "online") == TRUE)
-+			state = "connnected";
-+		else
-+			state = "";
-+		markup = g_strdup_printf("  %s\n  %s", title, state);
-+
- 		break;
- 	case CONNMAN_TYPE_WIMAX:
- 		title = N_("WiMAX");
-+		markup = g_strdup_printf("  %s\n", title);
- 		break;
- 	case CONNMAN_TYPE_BLUETOOTH:
- 		title = N_("Bluetooth");
-+		markup = g_strdup_printf("  %s\n", title);
-+		break;
-+	case CONNMAN_TYPE_LABEL_ETHERNET:
-+		title = N_("Wired Networks");
-+		markup = g_strdup_printf("<b>\n%s\n</b>", title);
-+		break;
-+	case CONNMAN_TYPE_LABEL_WIFI:
-+		title = N_("Wireless Networks");
-+		markup = g_strdup_printf("<b>\n%s\n</b>", title);
-+		break;
-+	case CONNMAN_TYPE_SYSCONFIG:
-+		title = N_("System Configuration");
-+		markup = g_strdup_printf("<b>\n%s\n</b>", title);
- 		break;
- 	default:
- 		title = N_("Unknown");
-+		markup = g_strdup_printf("  %s\n", title);
- 		break;
- 	}
- 
--	if (powered == TRUE) {
--		if (inrange == TRUE)
--			info = N_("Connected");
--		else
--			info = N_("Not Connected");
--	} else
--		info = N_("Disabled");
--
--	markup = g_strdup_printf("<b>%s</b>\n<small>%s</small>", title, info);
- 	g_object_set(cell, "markup", markup, NULL);
--	g_free(markup);
- }
- 
- static void type_to_icon(GtkTreeViewColumn *column, GtkCellRenderer *cell,
--			GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
-+		GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
- {
--	guint type;
-+	guint type, strength;
-+	char *name;
- 
--	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_TYPE, &type, -1);
-+	gtk_tree_model_get(model, iter, CONNMAN_COLUMN_TYPE, &type,
-+					CONNMAN_COLUMN_STRENGTH, &strength,
-+					-1);
- 
- 	switch (type) {
--	case CONNMAN_TYPE_ETHERNET:
-+	case CONNMAN_TYPE_WIFI:
-+		name = g_strdup_printf("connman-signal-0%d", (strength-1)/20+1);
-+		g_object_set(cell, "icon-name", name,
-+				"stock-size", 4, NULL);
-+		break;
-+	case CONNMAN_TYPE_LABEL_ETHERNET:
- 		g_object_set(cell, "icon-name", "network-wired",
--						"stock-size", 5, NULL);
-+				"stock-size", 4, NULL);
- 		break;
--	case CONNMAN_TYPE_WIFI:
--	case CONNMAN_TYPE_WIMAX:
-+	case CONNMAN_TYPE_LABEL_WIFI:
- 		g_object_set(cell, "icon-name", "network-wireless",
--						"stock-size", 5, NULL);
--		break;
--	case CONNMAN_TYPE_BLUETOOTH:
--		g_object_set(cell, "icon-name", "bluetooth",
--						"stock-size", 5, NULL);
-+				"stock-size", 4, NULL);
- 		break;
- 	default:
- 		g_object_set(cell, "icon-name", NULL, NULL);
-@@ -362,40 +380,34 @@ static GtkWidget *create_interfaces(GtkWidget *window)
- 
- 	scrolled = gtk_scrolled_window_new(NULL, NULL);
- 	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled),
--				GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-+			GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- 	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled),
--							GTK_SHADOW_OUT);
-+			GTK_SHADOW_OUT);
- 	gtk_box_pack_start(GTK_BOX(hbox), scrolled, FALSE, TRUE, 0);
- 
- 	tree = gtk_tree_view_new();
- 	gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree), FALSE);
- 	gtk_tree_view_set_show_expanders(GTK_TREE_VIEW(tree), FALSE);
- 	gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tree), TRUE);
--	gtk_widget_set_size_request(tree, 180, -1);
-+	gtk_widget_set_size_request(tree, 220, -1);
- 	gtk_container_add(GTK_CONTAINER(scrolled), tree);
- 
- 
- 	column = gtk_tree_view_column_new();
- 	gtk_tree_view_column_set_expand(column, TRUE);
- 	gtk_tree_view_column_set_spacing(column, 4);
-+	gtk_tree_view_column_set_alignment(column, 0);
- 	gtk_tree_view_append_column(GTK_TREE_VIEW(tree), column);
- 
- 	renderer = gtk_cell_renderer_pixbuf_new();
--	gtk_cell_renderer_set_fixed_size(renderer, 20, 45);
- 	gtk_tree_view_column_pack_start(column, renderer, FALSE);
- 	gtk_tree_view_column_set_cell_data_func(column, renderer,
--						state_to_icon, NULL, NULL);
-+			type_to_icon, NULL, NULL);
- 
- 	renderer = gtk_cell_renderer_text_new();
--	gtk_tree_view_column_pack_start(column, renderer, TRUE);
--	gtk_tree_view_column_set_cell_data_func(column, renderer,
--						type_to_text, NULL, NULL);
--
--	renderer = gtk_cell_renderer_pixbuf_new();
--	gtk_tree_view_column_pack_end(column, renderer, FALSE);
-+	gtk_tree_view_column_pack_start(column, renderer, FALSE);
- 	gtk_tree_view_column_set_cell_data_func(column, renderer,
--						type_to_icon, NULL, NULL);
--
-+			device_to_text, NULL, NULL);
- 
- 	interface_notebook = gtk_notebook_new();
- 	gtk_notebook_set_show_tabs(GTK_NOTEBOOK(interface_notebook), FALSE);
-@@ -405,21 +417,19 @@ static GtkWidget *create_interfaces(GtkWidget *window)
- 
- 	model = connman_client_get_device_model(client);
- 	gtk_tree_view_set_model(GTK_TREE_VIEW(tree), model);
-+
- 	g_object_unref(model);
- 
- 	selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree));
- 	gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
- 	g_signal_connect(G_OBJECT(selection), "changed",
--					G_CALLBACK(select_callback), window);
--
--	g_signal_connect(G_OBJECT(model), "row-changed",
--					G_CALLBACK(row_changed), selection);
-+			G_CALLBACK(select_callback), window);
- 
- 	return mainbox;
- }
- 
- static gboolean delete_callback(GtkWidget *window, GdkEvent *event,
--							gpointer user_data)
-+		gpointer user_data)
- {
- 	gtk_widget_destroy(window);
- 
-@@ -451,7 +461,7 @@ static GtkWidget *create_window(void)
- 	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
- 	gtk_window_set_default_size(GTK_WINDOW(window), 580, 380);
- 	g_signal_connect(G_OBJECT(window), "delete-event",
--					G_CALLBACK(delete_callback), NULL);
-+			G_CALLBACK(delete_callback), NULL);
- 
- 	vbox = gtk_vbox_new(FALSE, 12);
- 	gtk_container_set_border_width(GTK_CONTAINER(vbox), 12);
-@@ -467,12 +477,12 @@ static GtkWidget *create_window(void)
- 	button = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
- 	gtk_container_add(GTK_CONTAINER(buttonbox), button);
- 	g_signal_connect(G_OBJECT(button), "clicked",
--					G_CALLBACK(close_callback), window);
-+			G_CALLBACK(close_callback), window);
- 
- 	widget = create_interfaces(window);
- 	gtk_notebook_prepend_page(GTK_NOTEBOOK(notebook), widget, NULL);
- 	gtk_notebook_set_tab_label_text(GTK_NOTEBOOK(notebook),
--						widget, _("Devices"));
-+			widget, _("Services"));
- 
- 	gtk_widget_show_all(window);
- 
-@@ -487,6 +497,8 @@ int main(int argc, char *argv[])
- 	bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
- 	textdomain(GETTEXT_PACKAGE);
- 
-+	current_data = NULL;
-+
- 	gtk_init(&argc, &argv);
- 
- 	gtk_window_set_default_icon_name("network-wireless");
-diff --git a/properties/wifi.c b/properties/wifi.c
-index 320dce4..42fe7d2 100644
---- a/properties/wifi.c
-+++ b/properties/wifi.c
-@@ -23,6 +23,7 @@
- #include <config.h>
- #endif
- 
-+#include <dbus/dbus-glib.h>
- #include <glib/gi18n.h>
- #include <gtk/gtk.h>
- 
-@@ -30,6 +31,24 @@
- 
- #include "advanced.h"
- 
-+static void update_wifi_ipv4(struct config_data *data, guint policy);
-+
-+static gboolean separator_function(GtkTreeModel *model,
-+					GtkTreeIter *iter, gpointer user_data)
-+{
-+	gchar *text;
-+	gboolean result = FALSE;
-+
-+	gtk_tree_model_get(model, iter, 0, &text, -1);
-+
-+	if (text && *text == '\0')
-+		result = TRUE;
-+
-+	g_free(text);
-+
-+	return result;
-+}
-+
- static void changed_callback(GtkWidget *editable, gpointer user_data)
- {
- 	struct config_data *data = user_data;
-@@ -37,98 +56,357 @@ static void changed_callback(GtkWidget *editable, gpointer user_data)
- 
- 	active = gtk_combo_box_get_active(GTK_COMBO_BOX(data->policy.config));
- 
--	switch (active) {
--	case 0:
--		connman_client_set_policy(data->client, data->device, "auto");
--		update_wifi_policy(data, CONNMAN_POLICY_AUTO);
--		break;
--	case 1:
--		connman_client_set_policy(data->client, data->device, "manual");
--		update_wifi_policy(data, CONNMAN_POLICY_MANUAL);
--		break;
--	case 3:
--		connman_client_set_policy(data->client, data->device, "off");
--		update_wifi_policy(data, CONNMAN_POLICY_OFF);
--		break;
-+	update_wifi_ipv4(data, active);
-+}
-+
-+static void connect_reply_cb(DBusGProxy *proxy, GError *error,
-+				   gpointer user_data)
-+{
-+	if (error)
-+		g_error_free(error);
-+}
-+
-+static void connect_callback(GtkWidget *editable, gpointer user_data)
-+{
-+	struct config_data *data = user_data;
-+
-+	gboolean ret;
-+	gint active;
-+
-+	if (data->wifi.passphrase) {
-+		char *passphrase;
-+		passphrase = (gchar *)gtk_entry_get_text(GTK_ENTRY(data->wifi.passphrase));
-+		ret = connman_client_set_passphrase(data->client, data->device,
-+				passphrase);
-+
-+		if (ret == FALSE) {
-+			return;
-+		}
- 	}
-+
-+	active = gtk_combo_box_get_active(GTK_COMBO_BOX(data->policy.config));
-+	data->ipv4_config.method = active ? "manual" : "dhcp";
-+	data->ipv4_config.address = active ? gtk_entry_get_text(GTK_ENTRY(data->ipv4.entry[0])) : NULL;
-+	data->ipv4_config.netmask = active ? gtk_entry_get_text(GTK_ENTRY(data->ipv4.entry[1])) : NULL;
-+	data->ipv4_config.gateway = active ? gtk_entry_get_text(GTK_ENTRY(data->ipv4.entry[2])) : NULL;
-+	ret = connman_client_set_ipv4(data->client, data->device, &data->ipv4_config);
-+	if (ret == FALSE) {
-+		return;
-+	}
-+
-+	connman_client_connect_async(data->client, data->device, connect_reply_cb, data);
- }
- 
--void add_wifi_policy(GtkWidget *mainbox, struct config_data *data)
-+static void disconnect_callback(GtkWidget *editable, gpointer user_data)
-+{
-+	struct config_data *data = user_data;
-+
-+	connman_client_disconnect(data->client, data->device);
-+}
-+
-+static void switch_callback(GtkWidget *editable, gpointer user_data)
-+{
-+	struct config_data *data = user_data;
-+	const gchar *label = gtk_button_get_label(GTK_BUTTON(data->wifi_button));
-+
-+	if (g_str_equal(label, "Disable"))
-+		connman_client_disable_technology(data->client, data->device, "wifi");
-+	else
-+		connman_client_enable_technology(data->client, data->device, "wifi");
-+}
-+
-+static void scan_reply_cb(DBusGProxy *proxy, GError *error,
-+				   gpointer user_data)
-+{
-+	GtkWidget *button = user_data;
-+	gtk_widget_set_sensitive(button, 1);
-+
-+	if (error)
-+		g_error_free(error);
-+}
-+
-+static void scan_callback(GtkWidget *button, gpointer user_data)
-+{
-+	struct config_data *data = user_data;
-+	gtk_widget_set_sensitive(button, 0);
-+	connman_client_request_scan(data->client, "", scan_reply_cb, button);
-+}
-+
-+void add_wifi_switch_button(GtkWidget *mainbox, GtkTreeIter *iter,
-+				struct config_data *data)
- {
- 	GtkWidget *vbox;
- 	GtkWidget *table;
- 	GtkWidget *label;
--	GtkWidget *combo;
-+	GtkWidget *buttonbox;
-+	GtkWidget *button;
-+	gboolean wifi_enabled;
- 
--	vbox = gtk_vbox_new(FALSE, 0);
-+	gtk_tree_model_get(data->model, iter,
-+			CONNMAN_COLUMN_WIFI_ENABLED, &wifi_enabled,
-+			-1);
-+
-+	vbox = gtk_vbox_new(TRUE, 0);
- 	gtk_container_set_border_width(GTK_CONTAINER(vbox), 24);
- 	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
- 
--	table = gtk_table_new(2, 4, FALSE);
--	gtk_table_set_row_spacings(GTK_TABLE(table), 8);
--	gtk_table_set_col_spacings(GTK_TABLE(table), 8);
-+	table = gtk_table_new(1, 1, TRUE);
-+	gtk_table_set_row_spacings(GTK_TABLE(table), 10);
-+	gtk_table_set_col_spacings(GTK_TABLE(table), 10);
- 	gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
- 
--#if 0
--	label = gtk_label_new(_("Network Name:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
-+	label = gtk_label_new(_("Configure Wifi Networks."));
- 	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
- 
--	combo = gtk_combo_box_new_text();
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Guest");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Off");
--	gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(combo),
--					separator_function, NULL, NULL);
--	gtk_table_attach_defaults(GTK_TABLE(table), combo, 1, 4, 0, 1);
--	data->policy.config = combo;
--#endif
-+	buttonbox = gtk_hbutton_box_new();
-+	gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox), GTK_BUTTONBOX_CENTER);
-+	gtk_box_pack_start(GTK_BOX(mainbox), buttonbox, FALSE, FALSE, 0);
-+
-+	button = gtk_button_new();
-+	data->wifi_button = button;
-+
-+	if (wifi_enabled)
-+		gtk_button_set_label(GTK_BUTTON(button), _("Disable"));
-+	else
-+		gtk_button_set_label(GTK_BUTTON(button), _("Enable"));
-+
-+	gtk_container_add(GTK_CONTAINER(buttonbox), button);
-+	g_signal_connect(G_OBJECT(button), "clicked",
-+			G_CALLBACK(switch_callback), data);
-+
-+	button = gtk_button_new_with_label(_("Scan"));
-+	data->scan_button = button;
-+
-+	if (!wifi_enabled)
-+		gtk_widget_set_sensitive(button, 0);
-+
-+	gtk_container_add(GTK_CONTAINER(buttonbox), button);
-+	g_signal_connect(G_OBJECT(button), "clicked",
-+			G_CALLBACK(scan_callback), data);
-+}
-+
-+
-+static void wifi_ipconfig(GtkWidget *table, struct config_data *data, GtkTreeIter *iter)
-+{
-+	GtkWidget *entry;
-+	GtkWidget *label;
-+	GtkWidget *combo;
-+	DBusGProxy *proxy;
-+
-+	struct ipv4_config ipv4_config = {
-+		.method  = NULL,
-+		.address = NULL,
-+		.netmask = NULL,
-+		.gateway = NULL,
-+	};
-+
-+	gtk_tree_model_get(data->model, iter,
-+			CONNMAN_COLUMN_PROXY, &proxy,
-+			CONNMAN_COLUMN_METHOD, &ipv4_config.method,
-+			CONNMAN_COLUMN_ADDRESS, &ipv4_config.address,
-+			CONNMAN_COLUMN_NETMASK, &ipv4_config.netmask,
-+			CONNMAN_COLUMN_GATEWAY, &ipv4_config.gateway,
-+			-1);
- 
- 	label = gtk_label_new(_("Configuration:"));
--	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
--	gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 3, 4);
-+	data->ipv4.label[0] = label;
- 
- 	combo = gtk_combo_box_new_text();
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Automatically");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Manually");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "");
--	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Off");
-+	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "DHCP");
-+	gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Manual");
- 	gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(combo),
--					separator_function, NULL, NULL);
--	gtk_table_attach_defaults(GTK_TABLE(table), combo, 1, 4, 0, 1);
-+			separator_function, NULL, NULL);
-+
-+	gtk_table_attach_defaults(GTK_TABLE(table), combo, 2, 4, 3, 4);
- 	data->policy.config = combo;
- 
--	label = gtk_label_new(NULL);
--	gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
-+	label = gtk_label_new(_("IP address:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 4, 5);
-+	data->ipv4.label[0] = label;
-+
-+	entry = gtk_entry_new();
-+	gtk_entry_set_max_length (GTK_ENTRY (entry), 15);
-+	if (ipv4_config.address)
-+		gtk_entry_set_text(GTK_ENTRY(entry), ipv4_config.address);
-+	gtk_table_attach_defaults(GTK_TABLE(table), entry, 2, 4, 4, 5);
-+	data->ipv4.entry[0] = entry;
-+
-+	label = gtk_label_new(_("Netmask:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 5, 6);
-+	data->ipv4.label[1] = label;
-+
-+	entry = gtk_entry_new();
-+	gtk_entry_set_max_length (GTK_ENTRY (entry), 15);
-+	if (ipv4_config.netmask)
-+		gtk_entry_set_text(GTK_ENTRY(entry), ipv4_config.netmask);
-+	gtk_table_attach_defaults(GTK_TABLE(table), entry, 2, 4, 5, 6);
-+	data->ipv4.entry[1] = entry;
-+
-+	label = gtk_label_new(_("Gateway:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 6, 7);
-+	data->ipv4.label[2] = label;
-+
-+	entry = gtk_entry_new();
-+	gtk_entry_set_max_length (GTK_ENTRY (entry), 15);
-+	if (ipv4_config.gateway)
-+		gtk_entry_set_text(GTK_ENTRY(entry), ipv4_config.gateway);
-+	gtk_table_attach_defaults(GTK_TABLE(table), entry, 2, 4, 6, 7);
-+	data->ipv4.entry[2] = entry;
-+
-+	data->ipv4_config = ipv4_config;
-+
-+	if (g_str_equal(ipv4_config.method, "dhcp") == TRUE)
-+		update_wifi_ipv4(data, CONNMAN_POLICY_DHCP);
-+	else
-+		update_wifi_ipv4(data, CONNMAN_POLICY_MANUAL);
-+
-+	g_signal_connect(G_OBJECT(combo), "changed",
-+			G_CALLBACK(changed_callback), data);
-+}
-+
-+static void toggled_callback(GtkWidget *button, gpointer user_data)
-+{
-+	GtkWidget *entry = user_data;
-+	gboolean mode;
-+
-+	mode = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button));
-+
-+	gtk_entry_set_visibility(GTK_ENTRY(entry), mode);
-+}
-+
-+void add_wifi_policy(GtkWidget *mainbox, GtkTreeIter *iter, struct config_data *data)
-+{
-+	GtkWidget *vbox;
-+	GtkWidget *table;
-+	GtkWidget *label;
-+	GtkWidget *entry;
-+	GtkWidget *button;
-+
-+	const char *name, *security, *icon, *state;
-+	guint strength;
-+
-+	gtk_tree_model_get(data->model, iter,
-+			CONNMAN_COLUMN_NAME, &name,
-+			CONNMAN_COLUMN_SECURITY, &security,
-+			CONNMAN_COLUMN_ICON, &icon,
-+			CONNMAN_COLUMN_STATE, &state,
-+			CONNMAN_COLUMN_STRENGTH, &strength,
-+			-1);
-+
-+	if (g_str_equal(state, "failure") == TRUE)
-+		connman_client_remove(data->client, data->device);
-+
-+	vbox = gtk_vbox_new(TRUE, 0);
-+	gtk_container_set_border_width(GTK_CONTAINER(vbox), 24);
-+	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
-+
-+	table = gtk_table_new(10, 5, TRUE);
-+	gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
-+	data->table = table;
-+
-+	label = gtk_label_new(_("Access Point:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 0, 1);
-+
-+	label = gtk_label_new(_(name));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 2, 4, 0, 1);
- 	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
-+	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
-+	data->wifi.name = label;
-+
-+	label = gtk_label_new(_("Security:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 1, 2);
-+
-+	label = gtk_label_new(_(security));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 2, 4, 1, 2);
-+	gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
-+	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
-+	data->wifi.security = label;
-+
-+	label = gtk_label_new(_("Passphrase:"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 2, 3);
-+
-+	if (g_str_equal(security, "none") != TRUE &&
-+			g_str_equal(security, "unknown") != TRUE) {
-+		entry = gtk_entry_new();
-+		gtk_entry_set_max_length (GTK_ENTRY (entry), 64);
-+		gtk_table_attach_defaults(GTK_TABLE(table), entry, 2, 4, 2, 3);
-+		gtk_entry_set_visibility(GTK_ENTRY(entry), 0);
-+		data->wifi.passphrase = entry;
-+
-+		button = gtk_check_button_new_with_label(_("Show input"));
-+		gtk_table_attach_defaults(GTK_TABLE(table), button, 4, 5, 2, 3);
-+
-+		g_signal_connect(G_OBJECT(button), "toggled",
-+				G_CALLBACK(toggled_callback), entry);
-+
-+
-+	} else {
-+		label = gtk_label_new(_("none"));
-+		gtk_table_attach_defaults(GTK_TABLE(table), label, 2, 4, 2, 3);
-+		gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
-+		gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
-+		data->wifi.passphrase = NULL;
-+	}
-+
-+	label = gtk_label_new(_(""));
-+	gtk_table_attach_defaults(GTK_TABLE(table), label, 2, 3, 8, 9);
- 	gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
--	gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 4, 1, 2);
--	gtk_widget_set_size_request(label, 180, -1);
--	data->policy.label = label;
-+	gtk_widget_hide(label);
-+	data->wifi.connect_info = label;
- 
--	g_signal_connect(G_OBJECT(combo), "changed",
--				G_CALLBACK(changed_callback), data);
-+	button = gtk_button_new_with_label(_("Connect"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), button, 3, 4, 8, 9);
-+	g_signal_connect(G_OBJECT(button), "clicked",
-+			G_CALLBACK(connect_callback), data);
-+	gtk_widget_set_no_show_all(button, TRUE);
-+	data->wifi.connect = button;
-+
-+	button = gtk_button_new_with_label(_("Disconnect"));
-+	gtk_table_attach_defaults(GTK_TABLE(table), button, 3, 4, 8, 9);
-+	g_signal_connect(G_OBJECT(button), "clicked",
-+			G_CALLBACK(disconnect_callback), data);
-+	data->wifi.disconnect = button;
-+	gtk_widget_set_no_show_all(button, TRUE);
-+
-+	if (g_str_equal(state, "failure") == TRUE
-+			|| g_str_equal(state, "idle") == TRUE) {
-+		gtk_widget_show(data->wifi.connect);
-+		gtk_widget_hide(data->wifi.disconnect);
-+	} else {
-+		gtk_widget_hide(data->wifi.connect);
-+		gtk_widget_show(data->wifi.disconnect);
-+	}
-+
-+	wifi_ipconfig(table, data, iter);
- }
- 
--void update_wifi_policy(struct config_data *data, guint policy)
-+void update_wifi_ipv4(struct config_data *data, guint policy)
- {
- 	GtkWidget *combo = data->policy.config;
--	gchar *info = NULL;
-+	GtkWidget *entry[3];
-+	int i;
-+
-+	for (i = 0; i < 3; i++)
-+		entry[i] = data->ipv4.entry[i];
- 
- 	g_signal_handlers_block_by_func(G_OBJECT(combo),
--					G_CALLBACK(changed_callback), data);
-+			G_CALLBACK(changed_callback), data);
- 
- 	switch (policy) {
--	case CONNMAN_POLICY_OFF:
--		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 3);
-+	case CONNMAN_POLICY_DHCP:
-+		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
-+		for (i = 0; i < 3; i++) {
-+			gtk_entry_set_editable(GTK_ENTRY(entry[i]), 0);
-+			gtk_widget_set_sensitive(entry[i], 0);
-+		}
- 		break;
- 	case CONNMAN_POLICY_MANUAL:
- 		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 1);
--		break;
--	case CONNMAN_POLICY_AUTO:
--		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
-+		for (i = 0; i < 3; i++) {
-+			gtk_entry_set_editable(GTK_ENTRY(entry[i]), 1);
-+			gtk_widget_set_sensitive(entry[i], 1);
-+		}
- 		break;
- 	default:
- 		gtk_combo_box_set_active(GTK_COMBO_BOX(combo), -1);
-@@ -136,9 +414,5 @@ void update_wifi_policy(struct config_data *data, guint policy)
- 	}
- 
- 	g_signal_handlers_unblock_by_func(G_OBJECT(combo),
--					G_CALLBACK(changed_callback), data);
--
--	gtk_label_set_markup(GTK_LABEL(data->policy.label), info);
--
--	g_free(info);
-+			G_CALLBACK(changed_callback), data);
- }
diff --git a/meta/recipes-connectivity/connman/connman-gnome/remove-connman-property-desktop-file.patch b/meta/recipes-connectivity/connman/connman-gnome/remove-connman-property-desktop-file.patch
deleted file mode 100644
index 2a8cff3..0000000
--- a/meta/recipes-connectivity/connman/connman-gnome/remove-connman-property-desktop-file.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-diff -ruN connman-gnome-0.5-orig/po/POTFILES.in connman-gnome-0.5/po/POTFILES.in
---- connman-gnome-0.5-orig/po/POTFILES.in	2010-12-16 16:03:29.000000000 +0800
-+++ connman-gnome-0.5/po/POTFILES.in	2010-12-17 10:27:17.000000000 +0800
-@@ -4,4 +4,3 @@
- properties/advanced.c
- properties/ethernet.c
- properties/wifi.c
--properties/connman-properties.desktop.in
-diff -ruN connman-gnome-0.5-orig/properties/Makefile.am connman-gnome-0.5/properties/Makefile.am
---- connman-gnome-0.5-orig/properties/Makefile.am	2010-12-16 16:03:29.000000000 +0800
-+++ connman-gnome-0.5/properties/Makefile.am	2010-12-17 10:27:09.000000000 +0800
-@@ -17,16 +17,6 @@
- 
- INCLUDES = -I$(top_srcdir)/common
- 
--desktopdir = $(datadir)/applications
--
--desktop_in_files = connman-properties.desktop.in
--
--desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
--
- @INTLTOOL_DESKTOP_RULE@
- 
--CLEANFILES = $(desktop_DATA)
--
--EXTRA_DIST = $(desktop_in_files)
--
- MAINTAINERCLEANFILES = Makefile.in
-diff -ruN connman-gnome-0.5-orig/properties/connman-properties.desktop.in connman-gnome-0.5/properties/connman-properties.desktop.in
---- connman-gnome-0.5-orig/properties/connman-properties.desktop.in	2010-12-16 16:03:29.000000000 +0800
-+++ connman-gnome-0.5/properties/connman-properties.desktop.in	1970-01-01 08:00:00.000000000 +0800
-@@ -1,10 +0,0 @@
--[Desktop Entry]
--Encoding=UTF-8
--_Name=Connection Management
--_Comment=Configure connection management
--Icon=stock_internet
--Exec=connman-properties
--Terminal=false
--Type=Application
--Categories=Settings;
--OnlyShowIn=GNOME;
diff --git a/meta/recipes-connectivity/connman/connman-gnome/service_name_update.patch b/meta/recipes-connectivity/connman/connman-gnome/service_name_update.patch
deleted file mode 100644
index 942cfc8..0000000
--- a/meta/recipes-connectivity/connman/connman-gnome/service_name_update.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -ruN connman-gnome-0.5-orig/common/connman-dbus.h connman-gnome-0.5/common/connman-dbus.h
---- connman-gnome-0.5-orig/common/connman-dbus.h	2010-12-30 09:45:03.312043457 +0800
-+++ connman-gnome-0.5/common/connman-dbus.h	2010-12-30 09:45:33.978499439 +0800
-@@ -22,7 +22,7 @@
- #include <dbus/dbus-glib.h>
- #include <gtk/gtk.h>
- 
--#define CONNMAN_SERVICE			"org.moblin.connman"
-+#define CONNMAN_SERVICE			"net.connman"
- 
- #define CONNMAN_ERROR_INTERFACE		CONNMAN_SERVICE ".Error"
- #define CONNMAN_AGENT_INTERFACE		CONNMAN_SERVICE ".Agent"
-diff -ruN connman-gnome-0.5-orig/common/instance.c connman-gnome-0.5/common/instance.c
---- connman-gnome-0.5-orig/common/instance.c	2010-12-30 09:45:03.316085542 +0800
-+++ connman-gnome-0.5/common/instance.c	2010-12-30 09:46:01.654479049 +0800
-@@ -29,7 +29,7 @@
- 
- #include "instance.h"
- 
--#define CONNMAN_SERVICE    "org.moblin.connman"
-+#define CONNMAN_SERVICE    "net.connman"
- #define CONNMAN_INSTANCE   CONNMAN_SERVICE ".Instance"
- 
- static DBusGConnection *connection;
-diff -ruN connman-gnome-0.5-orig/common/instance.xml connman-gnome-0.5/common/instance.xml
---- connman-gnome-0.5-orig/common/instance.xml	2010-12-30 09:45:03.312043457 +0800
-+++ connman-gnome-0.5/common/instance.xml	2010-12-30 09:45:49.868372780 +0800
-@@ -1,7 +1,7 @@
- <?xml version="1.0" encoding="UTF-8" ?>
- 
- <node name="/">
--  <interface name="org.moblin.connman.Instance">
-+  <interface name="net.connman.Instance">
-     <method name="Present">
-     </method>
-   </interface>
diff --git a/meta/recipes-connectivity/connman/connman-gnome_0.5.bb b/meta/recipes-connectivity/connman/connman-gnome_git.bb
similarity index 72%
rename from meta/recipes-connectivity/connman/connman-gnome_0.5.bb
rename to meta/recipes-connectivity/connman/connman-gnome_git.bb
index 4fcdfaf..ee236b9 100644
--- a/meta/recipes-connectivity/connman/connman-gnome_0.5.bb
+++ b/meta/recipes-connectivity/connman/connman-gnome_git.bb
@@ -6,15 +6,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
                     file://properties/main.c;beginline=1;endline=20;md5=50c77c81871308b033ab7a1504626afb \
                     file://common/connman-dbus.c;beginline=1;endline=20;md5=de6b485c0e717a0236402d220187717a"
 DEPENDS = "gtk+ dbus"
-PR = "r4"
 
-RRECOMMENDS_${PN} = "python python-dbus connman connman-plugin-ethernet connman-plugin-loopback connman-plugin-udhcp connman-plugin-wifi connman-plugin-fake connman-plugin-bluetooth connman-plugin-dnsproxy"
+PV = "git${SRCPV}"
+PR = "r0"
 
-SRC_URI = "${KERNELORG_MIRROR}/linux/network/connman/connman-gnome-${PV}.tar.gz \
-           file://connman-gnome.patch \
-           file://remove-connman-property-desktop-file.patch \
-           file://service_name_update.patch \
-           file://applet_menu_popup_fix.patch"
+RRECOMMENDS_${PN} = "python python-dbus connman connman-plugin-ethernet connman-plugin-loopback connman-plugin-udhcp connman-plugin-wifi connman-plugin-fake connman-plugin-bluetooth connman-plugin-dnsproxy connman-plugin-ofono"
+
+SRCREV = "78d3c39db6f3f7977b466305110faa8ca5f74ec8"
+
+SRC_URI = "git://git.kernel.org/pub/scm/network/connman/connman-gnome.git;protocol=git \
+           file://3g.patch"
+
+S = "${WORKDIR}/git"
 
 SRC_URI[md5sum] = "0e1c4c25d19cad9b08a216848a320716"
 SRC_URI[sha256sum] = "4d5fe481b444fc3e64fd9caa149dbcd76de166a25733f18fd93da01d2abf5d1c"
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [poky] [PATCH 0/5] 3G network support
  2011-06-07  8:52 [PATCH 0/5] 3G network support y
@ 2011-06-07  9:10   ` Koen Kooi
  2011-06-07  8:52 ` [PATCH 2/5] connman: Upgrade to version 0.73 y
                     ` (4 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Koen Kooi @ 2011-06-07  9:10 UTC (permalink / raw)
  To: Dongxiao Xu
  Cc: poky@yoctoproject.org Project,
	Patches and discussions about the oe-core layer

Shouldn't these be sent to the oe-core list instead?

Op 7 jun 2011, om 10:54 heeft Dongxiao Xu het volgende geschreven:

> Hi Saul,
> 
> The following commits enables 3G feature for Yocto Project. Please help to review and pull.
> (Resend due to error "From" info in previous mail).
> 
> Some notes:
> a) 0001.patch: Automatically load some kernel modules which is used to support usb network.
> b) 0002.patch: upgrade connman to 0.73, also add ofono plugin.
> c) 0003.patch: Remove 0.6.10 versio of wpa-supplicant. (This commit is not related with 3G support).
> d) 0004.patch: Add 0.42 version of ofono. Because ofonod after 0.42 would crash on Ericsson 3G module.
> e) 0005.patch: Add 3G config UI in connman-gnome. Also upgrade it to latest git head.
> 
> The following changes since commit 7f34cd1eb2a459709006ae985a14decd4d2152e6:
> 
>  tzcode: Update to 2011g (2011-06-06 15:58:42 +0100)
> 
> are available in the git repository at:
>  git://git.pokylinux.org/poky-contrib dxu4/upgrade
>  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/upgrade
> 
> Dongxiao Xu (5):
>  kernel.bbclass: Auto load cdc-acm and cdc-wdm
>  connman: Upgrade to version 0.73
>  wpa-supplicant: remove the 0.6.10 version.
>  ofono: add 0.42 version which works OK for Ericsson 3G module.
>  connman-gnome: Add 3G configuration support
> 
> meta/classes/kernel.bbclass                        |    2 +
> meta/conf/distro/include/default-versions.inc      |    1 +
> .../connman-0.65/fix-shutdown-ap-disconnect.patch  |   42 -
> .../add_xuser_dbus_permission.patch                |    2 +
> .../connman/{connman-0.65 => connman-0.73}/connman |    0
> .../{connman-0.65 => connman-0.73}/dbusperms.patch |    2 +
> .../connman/connman-gnome/3g.patch                 |  505 +++
> .../connman-gnome/applet_menu_popup_fix.patch      |   19 -
> .../connman/connman-gnome/connman-gnome.patch      | 4162 --------------------
> .../remove-connman-property-desktop-file.patch     |   42 -
> .../connman-gnome/service_name_update.patch        |   36 -
> .../{connman-gnome_0.5.bb => connman-gnome_git.bb} |   17 +-
> meta/recipes-connectivity/connman/connman.inc      |    2 +-
> .../connman/{connman_0.65.bb => connman_0.73.bb}   |    8 +-
> meta/recipes-connectivity/ofono/ofono.inc          |    2 +
> meta/recipes-connectivity/ofono/ofono_0.42.bb      |   13 +
> .../wpa-supplicant-0.6.10/99_wpa_supplicant        |    1 -
> .../wpa-supplicant-0.6.10/defaults-sane            |    8 -
> .../wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls   |  180 -
> .../wpa-supplicant-0.6.10/wpa-supplicant.sh        |   85 -
> .../wpa-supplicant-0.6.10/wpa_supplicant.conf      |  690 ----
> .../wpa-supplicant-0.6.10/wpa_supplicant.conf-sane |    7 -
> .../wpa-supplicant/wpa-supplicant-0.6.inc          |   83 -
> .../wpa-supplicant/wpa-supplicant_0.6.10.bb        |    4 -
> 24 files changed, 542 insertions(+), 5371 deletions(-)
> delete mode 100644 meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/add_xuser_dbus_permission.patch (94%)
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/connman (100%)
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/dbusperms.patch (91%)
> create mode 100644 meta/recipes-connectivity/connman/connman-gnome/3g.patch
> delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/applet_menu_popup_fix.patch
> delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/connman-gnome.patch
> delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/remove-connman-property-desktop-file.patch
> delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/service_name_update.patch
> rename meta/recipes-connectivity/connman/{connman-gnome_0.5.bb => connman-gnome_git.bb} (72%)
> rename meta/recipes-connectivity/connman/{connman_0.65.bb => connman_0.73.bb} (74%)
> create mode 100644 meta/recipes-connectivity/ofono/ofono_0.42.bb
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/99_wpa_supplicant
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defaults-sane
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa-supplicant.sh
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf-sane
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.inc
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.6.10.bb
> 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 0/5] 3G network support
@ 2011-06-07  9:10   ` Koen Kooi
  0 siblings, 0 replies; 13+ messages in thread
From: Koen Kooi @ 2011-06-07  9:10 UTC (permalink / raw)
  To: Dongxiao Xu
  Cc: poky@yoctoproject.org Project,
	Patches and discussions about the oe-core layer

Shouldn't these be sent to the oe-core list instead?

Op 7 jun 2011, om 10:54 heeft Dongxiao Xu het volgende geschreven:

> Hi Saul,
> 
> The following commits enables 3G feature for Yocto Project. Please help to review and pull.
> (Resend due to error "From" info in previous mail).
> 
> Some notes:
> a) 0001.patch: Automatically load some kernel modules which is used to support usb network.
> b) 0002.patch: upgrade connman to 0.73, also add ofono plugin.
> c) 0003.patch: Remove 0.6.10 versio of wpa-supplicant. (This commit is not related with 3G support).
> d) 0004.patch: Add 0.42 version of ofono. Because ofonod after 0.42 would crash on Ericsson 3G module.
> e) 0005.patch: Add 3G config UI in connman-gnome. Also upgrade it to latest git head.
> 
> The following changes since commit 7f34cd1eb2a459709006ae985a14decd4d2152e6:
> 
>  tzcode: Update to 2011g (2011-06-06 15:58:42 +0100)
> 
> are available in the git repository at:
>  git://git.pokylinux.org/poky-contrib dxu4/upgrade
>  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/upgrade
> 
> Dongxiao Xu (5):
>  kernel.bbclass: Auto load cdc-acm and cdc-wdm
>  connman: Upgrade to version 0.73
>  wpa-supplicant: remove the 0.6.10 version.
>  ofono: add 0.42 version which works OK for Ericsson 3G module.
>  connman-gnome: Add 3G configuration support
> 
> meta/classes/kernel.bbclass                        |    2 +
> meta/conf/distro/include/default-versions.inc      |    1 +
> .../connman-0.65/fix-shutdown-ap-disconnect.patch  |   42 -
> .../add_xuser_dbus_permission.patch                |    2 +
> .../connman/{connman-0.65 => connman-0.73}/connman |    0
> .../{connman-0.65 => connman-0.73}/dbusperms.patch |    2 +
> .../connman/connman-gnome/3g.patch                 |  505 +++
> .../connman-gnome/applet_menu_popup_fix.patch      |   19 -
> .../connman/connman-gnome/connman-gnome.patch      | 4162 --------------------
> .../remove-connman-property-desktop-file.patch     |   42 -
> .../connman-gnome/service_name_update.patch        |   36 -
> .../{connman-gnome_0.5.bb => connman-gnome_git.bb} |   17 +-
> meta/recipes-connectivity/connman/connman.inc      |    2 +-
> .../connman/{connman_0.65.bb => connman_0.73.bb}   |    8 +-
> meta/recipes-connectivity/ofono/ofono.inc          |    2 +
> meta/recipes-connectivity/ofono/ofono_0.42.bb      |   13 +
> .../wpa-supplicant-0.6.10/99_wpa_supplicant        |    1 -
> .../wpa-supplicant-0.6.10/defaults-sane            |    8 -
> .../wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls   |  180 -
> .../wpa-supplicant-0.6.10/wpa-supplicant.sh        |   85 -
> .../wpa-supplicant-0.6.10/wpa_supplicant.conf      |  690 ----
> .../wpa-supplicant-0.6.10/wpa_supplicant.conf-sane |    7 -
> .../wpa-supplicant/wpa-supplicant-0.6.inc          |   83 -
> .../wpa-supplicant/wpa-supplicant_0.6.10.bb        |    4 -
> 24 files changed, 542 insertions(+), 5371 deletions(-)
> delete mode 100644 meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/add_xuser_dbus_permission.patch (94%)
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/connman (100%)
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/dbusperms.patch (91%)
> create mode 100644 meta/recipes-connectivity/connman/connman-gnome/3g.patch
> delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/applet_menu_popup_fix.patch
> delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/connman-gnome.patch
> delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/remove-connman-property-desktop-file.patch
> delete mode 100644 meta/recipes-connectivity/connman/connman-gnome/service_name_update.patch
> rename meta/recipes-connectivity/connman/{connman-gnome_0.5.bb => connman-gnome_git.bb} (72%)
> rename meta/recipes-connectivity/connman/{connman_0.65.bb => connman_0.73.bb} (74%)
> create mode 100644 meta/recipes-connectivity/ofono/ofono_0.42.bb
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/99_wpa_supplicant
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defaults-sane
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/defconfig-0.6.0-gnutls
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa-supplicant.sh
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.10/wpa_supplicant.conf-sane
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.6.inc
> delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.6.10.bb
> 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [poky] [PATCH 2/5] connman: Upgrade to version 0.73
  2011-06-07  8:52 ` [PATCH 2/5] connman: Upgrade to version 0.73 y
@ 2011-06-07  9:12     ` Koen Kooi
  0 siblings, 0 replies; 13+ messages in thread
From: Koen Kooi @ 2011-06-07  9:12 UTC (permalink / raw)
  To: Dongxiao Xu
  Cc: poky@yoctoproject.org Project,
	Patches and discussions about the oe-core layer


Op 7 jun 2011, om 10:54 heeft Dongxiao Xu het volgende geschreven:

> Enable ofono plugin into sato image.
> Remove the fix-shutdown-ap-disconnect.patch since the original logic no longer exists.
> Add Upstream-Status information for patches.
> 
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>

How different is this from the connman 0.74 in meta-oe?



> ---
> .../connman-0.65/fix-shutdown-ap-disconnect.patch  |   42 --------------------
> .../add_xuser_dbus_permission.patch                |    2 +
> .../connman/{connman-0.65 => connman-0.73}/connman |    0
> .../{connman-0.65 => connman-0.73}/dbusperms.patch |    2 +
> meta/recipes-connectivity/connman/connman.inc      |    2 +-
> .../connman/{connman_0.65.bb => connman_0.73.bb}   |    8 ++--
> 6 files changed, 9 insertions(+), 47 deletions(-)
> delete mode 100644 meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/add_xuser_dbus_permission.patch (94%)
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/connman (100%)
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/dbusperms.patch (91%)
> rename meta/recipes-connectivity/connman/{connman_0.65.bb => connman_0.73.bb} (74%)
> 
> diff --git a/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch b/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
> deleted file mode 100644
> index a0ad099..0000000
> --- a/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
> +++ /dev/null
> @@ -1,42 +0,0 @@
> -Schedule delayed scan when being disconnected from an AP
> -
> -When being disconnected from an AP, a delayed scan is scheduled to make
> -sure the AP is still there. wpa_supplicant removes a BSS from its bss list
> -when it disappears from the scan results twice in a row.
> -
> -Author: Samuel Ortiz <sameo@linux.intel.com>
> -Ported by Dongxiao Xu <dongxiao.xu@intel.com>
> -
> -diff -ruN connman-0.56-orig/plugins/supplicant.c connman-0.56/plugins/supplicant.c
> ---- connman-0.56-orig/plugins/supplicant.c	2010-09-25 15:08:21.242927383 +0800
> -+++ connman-0.56/plugins/supplicant.c	2010-09-25 15:12:46.346136858 +0800
> -@@ -2184,6 +2184,15 @@
> - 				scanning == TRUE ? "started" : "finished");
> - }
> - 
> -+static gboolean delayed_scan(gpointer user_data)
> -+{
> -+	struct supplicant_task *task = user_data;
> -+
> -+	supplicant_scan(task->device);
> -+
> -+	return FALSE;
> -+}
> -+
> - static void state_change(struct supplicant_task *task, DBusMessage *msg)
> - {
> - 	DBusError error;
> -@@ -2277,7 +2286,13 @@
> - 				task_connect(task);
> - 			} else
> - 				task->network = NULL;
> -+		} else {
> -+			if (task->state == WPA_DISCONNECTED)
> -+				g_timeout_add_seconds(10, delayed_scan, task);
> -+
> -+			remove_network(task);
> - 		}
> -+
> - 		break;
> - 
> - 	default:
> diff --git a/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch b/meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
> similarity index 94%
> rename from meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch
> rename to meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
> index 787d49b..764c689 100644
> --- a/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch
> +++ b/meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
> @@ -1,6 +1,8 @@
> Some platform (like atom-pc) enables rootless X,
> thus we need to add the xuser in the list.
> 
> +Upstream-Status: Inappropriate [configuration]
> +
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> 
> diff -ruN connman-0.65-orig/src/connman-dbus.conf connman-0.65/src/connman-dbus.conf
> diff --git a/meta/recipes-connectivity/connman/connman-0.65/connman b/meta/recipes-connectivity/connman/connman-0.73/connman
> similarity index 100%
> rename from meta/recipes-connectivity/connman/connman-0.65/connman
> rename to meta/recipes-connectivity/connman/connman-0.73/connman
> diff --git a/meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch b/meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
> similarity index 91%
> rename from meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch
> rename to meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
> index 100af03..c331654 100644
> --- a/meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch
> +++ b/meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
> @@ -1,3 +1,5 @@
> +Upstream-Status: Inappropriate [configuration]
> +
> Index: git/src/connman-dbus.conf
> ===================================================================
> --- git.orig/src/connman-dbus.conf	2009-05-26 00:34:35.000000000 +0100
> diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
> index fb970ed..f6565a5 100644
> --- a/meta/recipes-connectivity/connman/connman.inc
> +++ b/meta/recipes-connectivity/connman/connman.inc
> @@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
>                     file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e"
> 
> DEPENDS  = "libgdbus dbus glib-2.0 hal iptables"
> -RDEPENDS_${PN} = "wpa-supplicant resolvconf"
> +RDEPENDS_${PN} = "wpa-supplicant resolvconf ofono"
> 
> INITSCRIPT_NAME = "connman"
> INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
> diff --git a/meta/recipes-connectivity/connman/connman_0.65.bb b/meta/recipes-connectivity/connman/connman_0.73.bb
> similarity index 74%
> rename from meta/recipes-connectivity/connman/connman_0.65.bb
> rename to meta/recipes-connectivity/connman/connman_0.73.bb
> index 852f8dc..ffe0074 100644
> --- a/meta/recipes-connectivity/connman/connman_0.65.bb
> +++ b/meta/recipes-connectivity/connman/connman_0.73.bb
> @@ -1,5 +1,5 @@
> require connman.inc
> -PR = "r1"
> +PR = "r0"
> 
> EXTRA_OECONF += "\
>   ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
> @@ -16,14 +16,14 @@ EXTRA_OECONF += "\
>   --disable-udev \
>   --disable-polkit \
>   --enable-client \
> +  --enable-ofono \
>   --prefix=/usr --sysconfdir=/etc --localstatedir=/var"
> 
> SRC_URI  = "\
>   ${KERNELORG_MIRROR}/linux/network/connman/connman-${PV}.tar.gz \
> -  file://fix-shutdown-ap-disconnect.patch \
>   file://add_xuser_dbus_permission.patch \
>   file://connman \
> "
> 
> -SRC_URI[md5sum] = "bd714da295ed2d2d91a49539f4c4fa3a"
> -SRC_URI[sha256sum] = "a1c1d93da6bb4c2d8ae53293b06f237e02f5e796d2bba73ec639a466d05259c3"
> +SRC_URI[md5sum] = "01085b2ed8f7b11a41724f1528720cc7"
> +SRC_URI[sha256sum] = "b71ff2c3925ea82a7ebf818685f809e595d5c47d767005dfb149c6264b098417"
> -- 
> 1.7.1
> 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/5] connman: Upgrade to version 0.73
@ 2011-06-07  9:12     ` Koen Kooi
  0 siblings, 0 replies; 13+ messages in thread
From: Koen Kooi @ 2011-06-07  9:12 UTC (permalink / raw)
  To: Dongxiao Xu
  Cc: poky@yoctoproject.org Project,
	Patches and discussions about the oe-core layer


Op 7 jun 2011, om 10:54 heeft Dongxiao Xu het volgende geschreven:

> Enable ofono plugin into sato image.
> Remove the fix-shutdown-ap-disconnect.patch since the original logic no longer exists.
> Add Upstream-Status information for patches.
> 
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>

How different is this from the connman 0.74 in meta-oe?



> ---
> .../connman-0.65/fix-shutdown-ap-disconnect.patch  |   42 --------------------
> .../add_xuser_dbus_permission.patch                |    2 +
> .../connman/{connman-0.65 => connman-0.73}/connman |    0
> .../{connman-0.65 => connman-0.73}/dbusperms.patch |    2 +
> meta/recipes-connectivity/connman/connman.inc      |    2 +-
> .../connman/{connman_0.65.bb => connman_0.73.bb}   |    8 ++--
> 6 files changed, 9 insertions(+), 47 deletions(-)
> delete mode 100644 meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/add_xuser_dbus_permission.patch (94%)
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/connman (100%)
> rename meta/recipes-connectivity/connman/{connman-0.65 => connman-0.73}/dbusperms.patch (91%)
> rename meta/recipes-connectivity/connman/{connman_0.65.bb => connman_0.73.bb} (74%)
> 
> diff --git a/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch b/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
> deleted file mode 100644
> index a0ad099..0000000
> --- a/meta/recipes-connectivity/connman/connman-0.65/fix-shutdown-ap-disconnect.patch
> +++ /dev/null
> @@ -1,42 +0,0 @@
> -Schedule delayed scan when being disconnected from an AP
> -
> -When being disconnected from an AP, a delayed scan is scheduled to make
> -sure the AP is still there. wpa_supplicant removes a BSS from its bss list
> -when it disappears from the scan results twice in a row.
> -
> -Author: Samuel Ortiz <sameo@linux.intel.com>
> -Ported by Dongxiao Xu <dongxiao.xu@intel.com>
> -
> -diff -ruN connman-0.56-orig/plugins/supplicant.c connman-0.56/plugins/supplicant.c
> ---- connman-0.56-orig/plugins/supplicant.c	2010-09-25 15:08:21.242927383 +0800
> -+++ connman-0.56/plugins/supplicant.c	2010-09-25 15:12:46.346136858 +0800
> -@@ -2184,6 +2184,15 @@
> - 				scanning == TRUE ? "started" : "finished");
> - }
> - 
> -+static gboolean delayed_scan(gpointer user_data)
> -+{
> -+	struct supplicant_task *task = user_data;
> -+
> -+	supplicant_scan(task->device);
> -+
> -+	return FALSE;
> -+}
> -+
> - static void state_change(struct supplicant_task *task, DBusMessage *msg)
> - {
> - 	DBusError error;
> -@@ -2277,7 +2286,13 @@
> - 				task_connect(task);
> - 			} else
> - 				task->network = NULL;
> -+		} else {
> -+			if (task->state == WPA_DISCONNECTED)
> -+				g_timeout_add_seconds(10, delayed_scan, task);
> -+
> -+			remove_network(task);
> - 		}
> -+
> - 		break;
> - 
> - 	default:
> diff --git a/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch b/meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
> similarity index 94%
> rename from meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch
> rename to meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
> index 787d49b..764c689 100644
> --- a/meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch
> +++ b/meta/recipes-connectivity/connman/connman-0.73/add_xuser_dbus_permission.patch
> @@ -1,6 +1,8 @@
> Some platform (like atom-pc) enables rootless X,
> thus we need to add the xuser in the list.
> 
> +Upstream-Status: Inappropriate [configuration]
> +
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> 
> diff -ruN connman-0.65-orig/src/connman-dbus.conf connman-0.65/src/connman-dbus.conf
> diff --git a/meta/recipes-connectivity/connman/connman-0.65/connman b/meta/recipes-connectivity/connman/connman-0.73/connman
> similarity index 100%
> rename from meta/recipes-connectivity/connman/connman-0.65/connman
> rename to meta/recipes-connectivity/connman/connman-0.73/connman
> diff --git a/meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch b/meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
> similarity index 91%
> rename from meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch
> rename to meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
> index 100af03..c331654 100644
> --- a/meta/recipes-connectivity/connman/connman-0.65/dbusperms.patch
> +++ b/meta/recipes-connectivity/connman/connman-0.73/dbusperms.patch
> @@ -1,3 +1,5 @@
> +Upstream-Status: Inappropriate [configuration]
> +
> Index: git/src/connman-dbus.conf
> ===================================================================
> --- git.orig/src/connman-dbus.conf	2009-05-26 00:34:35.000000000 +0100
> diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
> index fb970ed..f6565a5 100644
> --- a/meta/recipes-connectivity/connman/connman.inc
> +++ b/meta/recipes-connectivity/connman/connman.inc
> @@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
>                     file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e"
> 
> DEPENDS  = "libgdbus dbus glib-2.0 hal iptables"
> -RDEPENDS_${PN} = "wpa-supplicant resolvconf"
> +RDEPENDS_${PN} = "wpa-supplicant resolvconf ofono"
> 
> INITSCRIPT_NAME = "connman"
> INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
> diff --git a/meta/recipes-connectivity/connman/connman_0.65.bb b/meta/recipes-connectivity/connman/connman_0.73.bb
> similarity index 74%
> rename from meta/recipes-connectivity/connman/connman_0.65.bb
> rename to meta/recipes-connectivity/connman/connman_0.73.bb
> index 852f8dc..ffe0074 100644
> --- a/meta/recipes-connectivity/connman/connman_0.65.bb
> +++ b/meta/recipes-connectivity/connman/connman_0.73.bb
> @@ -1,5 +1,5 @@
> require connman.inc
> -PR = "r1"
> +PR = "r0"
> 
> EXTRA_OECONF += "\
>   ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
> @@ -16,14 +16,14 @@ EXTRA_OECONF += "\
>   --disable-udev \
>   --disable-polkit \
>   --enable-client \
> +  --enable-ofono \
>   --prefix=/usr --sysconfdir=/etc --localstatedir=/var"
> 
> SRC_URI  = "\
>   ${KERNELORG_MIRROR}/linux/network/connman/connman-${PV}.tar.gz \
> -  file://fix-shutdown-ap-disconnect.patch \
>   file://add_xuser_dbus_permission.patch \
>   file://connman \
> "
> 
> -SRC_URI[md5sum] = "bd714da295ed2d2d91a49539f4c4fa3a"
> -SRC_URI[sha256sum] = "a1c1d93da6bb4c2d8ae53293b06f237e02f5e796d2bba73ec639a466d05259c3"
> +SRC_URI[md5sum] = "01085b2ed8f7b11a41724f1528720cc7"
> +SRC_URI[sha256sum] = "b71ff2c3925ea82a7ebf818685f809e595d5c47d767005dfb149c6264b098417"
> -- 
> 1.7.1
> 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm
  2011-06-07  8:52 ` [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm y
@ 2011-06-07 12:58   ` Bruce Ashfield
  2011-06-07 16:05     ` Darren Hart
  0 siblings, 1 reply; 13+ messages in thread
From: Bruce Ashfield @ 2011-06-07 12:58 UTC (permalink / raw)
  To: y; +Cc: poky

On Tue, Jun 7, 2011 at 4:52 AM,  <y@pokylinux.org> wrote:
> From: Dongxiao Xu <dongxiao.xu@intel.com>
>
> Automatically load cdc-acm.ko and cdc-wdm.ko to support 3G module.
>
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> ---
>  meta/classes/kernel.bbclass |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 1bb69f5..1b50b38 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -264,6 +264,8 @@ module_autoload_rfcomm = "rfcomm"
>  module_autoload_sa1100-rtc = "sa1100-rtc"
>  # sa1100-rtc was renamed in 2.6.23 onwards
>  module_autoload_rtc-sa1100 = "rtc-sa1100"
> +module_autoload_cdc-acm = "cdc-acm"
> +module_autoload_cdc-wdm = "cdc-wdm"

Hi Dongxiao,

This patch should go to oe-core, since we are talking about
meta/classes/kernel.bbclass.

But seeing this looks like it doesn't belong in kernel.bbclass at all (neither
do the existing autoloads), but would be better defined in either a BSP or
distro layer.

But maybe I'm missing something, and I'll be enlightened shortly :)

Cheers,

Bruce

>
>  # alias defaults (alphabetically sorted)
>  module_conf_af_packet = "alias net-pf-17 af_packet"
> --
> 1.7.1
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm
  2011-06-07 12:58   ` Bruce Ashfield
@ 2011-06-07 16:05     ` Darren Hart
  2011-06-07 17:05       ` Koen Kooi
  0 siblings, 1 reply; 13+ messages in thread
From: Darren Hart @ 2011-06-07 16:05 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: y, poky



On 06/07/2011 05:58 AM, Bruce Ashfield wrote:
> On Tue, Jun 7, 2011 at 4:52 AM,  <y@pokylinux.org> wrote:
>> From: Dongxiao Xu <dongxiao.xu@intel.com>
>>
>> Automatically load cdc-acm.ko and cdc-wdm.ko to support 3G module.
>>
>> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
>> ---
>>  meta/classes/kernel.bbclass |    2 ++
>>  1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index 1bb69f5..1b50b38 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -264,6 +264,8 @@ module_autoload_rfcomm = "rfcomm"
>>  module_autoload_sa1100-rtc = "sa1100-rtc"
>>  # sa1100-rtc was renamed in 2.6.23 onwards
>>  module_autoload_rtc-sa1100 = "rtc-sa1100"
>> +module_autoload_cdc-acm = "cdc-acm"
>> +module_autoload_cdc-wdm = "cdc-wdm"
> 
> Hi Dongxiao,
> 
> This patch should go to oe-core, since we are talking about
> meta/classes/kernel.bbclass.
> 
> But seeing this looks like it doesn't belong in kernel.bbclass at all (neither
> do the existing autoloads), but would be better defined in either a BSP or
> distro layer.

Agreed.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm
  2011-06-07 16:05     ` Darren Hart
@ 2011-06-07 17:05       ` Koen Kooi
  0 siblings, 0 replies; 13+ messages in thread
From: Koen Kooi @ 2011-06-07 17:05 UTC (permalink / raw)
  To: Darren Hart; +Cc: y, poky


Op 7 jun 2011, om 18:05 heeft Darren Hart het volgende geschreven:

> 
> 
> On 06/07/2011 05:58 AM, Bruce Ashfield wrote:
>> On Tue, Jun 7, 2011 at 4:52 AM,  <y@pokylinux.org> wrote:
>>> From: Dongxiao Xu <dongxiao.xu@intel.com>
>>> 
>>> Automatically load cdc-acm.ko and cdc-wdm.ko to support 3G module.
>>> 
>>> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
>>> ---
>>> meta/classes/kernel.bbclass |    2 ++
>>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>> 
>>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>>> index 1bb69f5..1b50b38 100644
>>> --- a/meta/classes/kernel.bbclass
>>> +++ b/meta/classes/kernel.bbclass
>>> @@ -264,6 +264,8 @@ module_autoload_rfcomm = "rfcomm"
>>> module_autoload_sa1100-rtc = "sa1100-rtc"
>>> # sa1100-rtc was renamed in 2.6.23 onwards
>>> module_autoload_rtc-sa1100 = "rtc-sa1100"
>>> +module_autoload_cdc-acm = "cdc-acm"
>>> +module_autoload_cdc-wdm = "cdc-wdm"
>> 
>> Hi Dongxiao,
>> 
>> This patch should go to oe-core, since we are talking about
>> meta/classes/kernel.bbclass.
>> 
>> But seeing this looks like it doesn't belong in kernel.bbclass at all (neither
>> do the existing autoloads), but would be better defined in either a BSP or
>> distro layer.
> 
> Agreed.

And more importantly, figure out why those don't get autoloaded when plugging in such usb devices.

regards,

Koen

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-06-07 17:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07  8:52 [PATCH 0/5] 3G network support y
2011-06-07  8:52 ` [PATCH 1/5] kernel.bbclass: Auto load cdc-acm and cdc-wdm y
2011-06-07 12:58   ` Bruce Ashfield
2011-06-07 16:05     ` Darren Hart
2011-06-07 17:05       ` Koen Kooi
2011-06-07  8:52 ` [PATCH 2/5] connman: Upgrade to version 0.73 y
2011-06-07  9:12   ` [poky] " Koen Kooi
2011-06-07  9:12     ` Koen Kooi
2011-06-07  8:52 ` [PATCH 3/5] wpa-supplicant: remove the 0.6.10 version y
2011-06-07  8:52 ` [PATCH 4/5] ofono: add 0.42 version which works OK for Ericsson 3G module y
2011-06-07  8:52 ` [PATCH 5/5] connman-gnome: Add 3G configuration support y
2011-06-07  9:10 ` [poky] [PATCH 0/5] 3G network support Koen Kooi
2011-06-07  9:10   ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.