summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman/connman-gnome/security-type.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/connman/connman-gnome/security-type.patch')
-rw-r--r--meta/recipes-connectivity/connman/connman-gnome/security-type.patch41
1 files changed, 41 insertions, 0 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 0000000000..a75d696f05
--- /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