Append raw ssid to WLAN Services 40/136340/1
authorMilind Ramesh Murhekar <m.murhekar@samsung.com>
Thu, 29 Jun 2017 07:03:29 +0000 (12:33 +0530)
committerMilind Ramesh Murhekar <m.murhekar@samsung.com>
Thu, 29 Jun 2017 07:05:50 +0000 (12:35 +0530)
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>
src/service.c

index 4f7b9b8..b4390b7 100755 (executable)
@@ -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",