summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-08-31 06:47:33 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-31 18:45:27 (GMT)
commite2ff50830bd35031252882465a362a25d0b5d41f (patch)
tree8b093c95eec823c0819d7611ac699f6fd9383ba5 /meta/recipes-connectivity/connman
parentc9767ea7ee2881da99fc178c6a097b35a62b3503 (diff)
downloadpoky-e2ff50830bd35031252882465a362a25d0b5d41f.tar.gz
connman-gnome: Fix WiFi security display issue
Latest connman-0.75 change the WiFi security type, causing the incompatibility of connman-gnome. Fix connman-gnome accordingly to show the correct security informtion. [YOCTO #1343] (From OE-Core rev: 38589c37923ecfe34f1dbd5f12d89d55dfb11e2a) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman')
-rw-r--r--meta/recipes-connectivity/connman/connman-gnome/security-type.patch41
-rw-r--r--meta/recipes-connectivity/connman/connman-gnome_0.5.bb5
2 files changed, 44 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/connman/connman-gnome/security-type.patch b/meta/recipes-connectivity/connman/connman-gnome/security-type.patch
new file mode 100644
index 0000000..a75d696
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman-gnome/security-type.patch
@@ -0,0 +1,41 @@
1From ec36df9d1fbb6dcbf0d1e79245ffe213049ecd5a Mon Sep 17 00:00:00 2001
2From: Dongxiao Xu <dongxiao.xu@intel.com>
3Date: Wed, 3 Aug 2011 14:33:07 +0800
4Subject: [PATCH] connman-dbus: fix security type mismatch
5
6Latest connman change the Security type to be array{String}, fix
7connman-gnome accordingly.
8
9Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
10---
11 common/connman-dbus.c | 5 +++--
12 1 files changed, 3 insertions(+), 2 deletions(-)
13
14Upstream-Status: Pending
15
16diff --git a/common/connman-dbus.c b/common/connman-dbus.c
17index 0f4e1db..0ac8ed5 100644
18--- a/common/connman-dbus.c
19+++ b/common/connman-dbus.c
20@@ -384,7 +384,8 @@ static void service_changed(DBusGProxy *proxy, const char *property,
21 gtk_tree_store_set(store, &iter,
22 CONNMAN_COLUMN_FAVORITE, favorite, -1);
23 } else if (g_str_equal(property, "Security") == TRUE) {
24- const char *security = value ? g_value_get_string(value) : NULL;
25+ const char **array = value ? g_value_get_boxed(value) : NULL;
26+ const char *security = g_strjoinv(" ", array);
27 gtk_tree_store_set(store, &iter,
28 CONNMAN_COLUMN_SECURITY, security,
29 -1);
30@@ -487,7 +488,7 @@ static void service_properties(DBusGProxy *proxy, GHashTable *hash,
31 strength = value ? g_value_get_uchar(value) : 0;
32
33 value = g_hash_table_lookup(hash, "Security");
34- security = value ? g_value_get_string(value) : NULL;
35+ security = value ? g_strjoinv(" ", g_value_get_boxed(value)) : NULL;
36
37 value = g_hash_table_lookup(hash, "PassPhrase");
38 passphrase = value ? g_value_get_string(value) : NULL;
39--
401.7.1
41
diff --git a/meta/recipes-connectivity/connman/connman-gnome_0.5.bb b/meta/recipes-connectivity/connman/connman-gnome_0.5.bb
index 416fa4b..9c78186 100644
--- a/meta/recipes-connectivity/connman/connman-gnome_0.5.bb
+++ b/meta/recipes-connectivity/connman/connman-gnome_0.5.bb
@@ -8,11 +8,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
8 8
9DEPENDS = "gtk+ dbus" 9DEPENDS = "gtk+ dbus"
10 10
11PR = "r6" 11PR = "r7"
12 12
13SRCREV = "78d3c39db6f3f7977b466305110faa8ca5f74ec8" 13SRCREV = "78d3c39db6f3f7977b466305110faa8ca5f74ec8"
14SRC_URI = "git://git.kernel.org/pub/scm/network/connman/connman-gnome.git;protocol=git \ 14SRC_URI = "git://git.kernel.org/pub/scm/network/connman/connman-gnome.git;protocol=git \
15 file://3g.patch" 15 file://3g.patch \
16 file://security-type.patch"
16 17
17S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"
18 19