[ASP2.0]: Add "service_instance" attribute in "AddService" Method 73/85173/3
authorManeesh Jain <maneesh.jain@samsung.com>
Wed, 24 Aug 2016 04:49:57 +0000 (10:19 +0530)
committerJiung Yu <jiung.yu@samsung.com>
Wed, 24 Aug 2016 07:15:31 +0000 (00:15 -0700)
Description: To sync-up with supplicant & ASP2.0, add Service
Instance Attribute in "AddService" method

Change-Id: Ibdfd1bd056303a7029dbd80156215be2400234bf
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5db8189..4c61885
@@ -6580,9 +6580,14 @@ int ws_advertise_service(wfd_oem_asp_service_s *service, int replace)
        g_variant_builder_add(builder, "{sv}", "config_method", g_variant_new_uint32(config_method));
        g_variant_builder_add(builder, "{sv}", "replace", g_variant_new_boolean(rep));
        if (service->service_type != NULL)
-               g_variant_builder_add(builder, "{sv}", "adv_str", g_variant_new_string(service->service_type));
+               g_variant_builder_add(builder, "{sv}", "adv_str",
+                       g_variant_new_string(service->service_type));
        if (service->service_info != NULL)
-               g_variant_builder_add(builder, "{sv}", "svc_info", g_variant_new_string(service->service_info));
+               g_variant_builder_add(builder, "{sv}", "svc_info",
+                               g_variant_new_string(service->service_info));
+       if (service->instance_name != NULL)
+               g_variant_builder_add(builder, "{sv}", "svc_instance",
+                               g_variant_new_string(service->instance_name));
 
        value = g_variant_new("(a{sv})", builder);
        g_variant_builder_unref(builder);