summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilind Ramesh Murhekar <m.murhekar@samsung.com>2017-06-29 07:03:29 (GMT)
committerMilind Ramesh Murhekar <m.murhekar@samsung.com>2017-06-29 07:05:50 (GMT)
commit740bd279dba86b886c76bf499b0926aec975b8b4 (patch)
treed6a23c199d354cb8ebb158a5dc3bba4b01ef87fe
parent56e947ef09946f78bef35c3bd78065f5b944c6f4 (diff)
downloadconnman-740bd279dba86b886c76bf499b0926aec975b8b4.zip
connman-740bd279dba86b886c76bf499b0926aec975b8b4.tar.gz
connman-740bd279dba86b886c76bf499b0926aec975b8b4.tar.bz2
Append raw ssid to WLAN Servicesrefs/changes/40/136340/1
Description: This patch appends the raw ssid in bytes to GetServices method call. Change-Id: I0fdbfba4bcf0860fff02c4edd34559154fd0b8eb Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
-rwxr-xr-xsrc/service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 4f7b9b8..b4390b7 100755
--- a/src/service.c
+++ b/src/service.c
@@ -3155,6 +3155,8 @@ static void append_wifi_ext_info(DBusMessageIter *dict,
{
char bssid_buff[WIFI_BSSID_STR_LEN] = {0,};
char *bssid_str = bssid_buff;
+ const void *ssid;
+ unsigned int ssid_len;
unsigned char *bssid;
unsigned int maxrate;
unsigned int keymgmt;
@@ -3162,6 +3164,7 @@ static void append_wifi_ext_info(DBusMessageIter *dict,
const char *enc_mode;
gboolean passpoint;
+ ssid = connman_network_get_blob(network, "WiFi.SSID", &ssid_len);
bssid = connman_network_get_bssid(network);
maxrate = connman_network_get_maxrate(network);
frequency = connman_network_get_frequency(network);
@@ -3173,6 +3176,8 @@ static void append_wifi_ext_info(DBusMessageIter *dict,
bssid[0], bssid[1], bssid[2],
bssid[3], bssid[4], bssid[5]);
+ connman_dbus_dict_append_fixed_array(dict, "SSID",
+ DBUS_TYPE_BYTE, &ssid, ssid_len);
connman_dbus_dict_append_basic(dict, "BSSID",
DBUS_TYPE_STRING, &bssid_str);
connman_dbus_dict_append_basic(dict, "MaxRate",