summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2016-08-18 10:41:00 (GMT)
committerSaurav Babu <saurav.babu@samsung.com>2016-08-18 10:41:00 (GMT)
commit25668af5d5b553087d39297fa00cae50cd8efe22 (patch)
tree48c32afa0d3227ca9fc749a9b7154d61d6d2f443
parentdda8448367f07dd17e3e318d2362680e4db32e7d (diff)
downloadconnman-tizen_tv_devel.zip
connman-tizen_tv_devel.tar.gz
connman-tizen_tv_devel.tar.bz2
[connman] Propagate Raw SSID Bytes to applicationtizen_tv_develrefs/changes/05/84405/1
ConnMan behaves abruptly for SSIDs in format other than UTF-8. This patch provides Raw SSID Bytes to Application so they can perform SSID conversion independently Change-Id: I4b934ba5fd87126bfda58ab0d636c81d568f5a33 Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
-rwxr-xr-xsrc/service.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 2bf6f58..b363e9e 100755
--- a/src/service.c
+++ b/src/service.c
@@ -2738,6 +2738,10 @@ static void append_wifi_ext_info(DBusMessageIter *dict,
uint16_t frequency;
const char *enc_mode;
gboolean passpoint;
+#if defined TIZEN_TV_EXT
+ const void *ssid;
+ unsigned int ssid_len;
+#endif
bssid = connman_network_get_bssid(network);
maxrate = connman_network_get_maxrate(network);
@@ -2745,6 +2749,9 @@ static void append_wifi_ext_info(DBusMessageIter *dict,
enc_mode = connman_network_get_enc_mode(network);
passpoint = connman_network_get_is_hs20AP(network);
keymgmt = connman_network_get_keymgmt(network);
+#if defined TIZEN_TV_EXT
+ ssid = connman_network_get_blob(network, "WiFi.SSID", &ssid_len);
+#endif
snprintf(bssid_str, WIFI_BSSID_STR_LEN, "%02x:%02x:%02x:%02x:%02x:%02x",
bssid[0], bssid[1], bssid[2],
@@ -2762,6 +2769,10 @@ static void append_wifi_ext_info(DBusMessageIter *dict,
DBUS_TYPE_BOOLEAN, &passpoint);
connman_dbus_dict_append_basic(dict, "Keymgmt",
DBUS_TYPE_UINT32, &keymgmt);
+#if defined TIZEN_TV_EXT
+ connman_dbus_dict_append_fixed_array(dict, "SSID", DBUS_TYPE_BYTE, &ssid,
+ ssid_len);
+#endif
}
#endif