[DA patch]Copy device address to p2p address if it is null 17/284217/1
authorjiung-yu <jiung.yu@samsung.com>
Sun, 13 Nov 2022 16:03:36 +0000 (01:03 +0900)
committerjiung-yu <jiung.yu@samsung.com>
Sun, 13 Nov 2022 16:03:58 +0000 (01:03 +0900)
Change-Id: Ib69a644c9dd83f3537b6f6984d660c9aaaa77e08
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index f720a5a..e7b4882 100644 (file)
@@ -2164,6 +2164,9 @@ static void _ws_process_device_found_properties(GDBusConnection *connection,
                g_variant_iter_free(iter);
        }
 
+       if (dev_data->p2p_dev_addr[0] == 0x0)
+               memcpy(dev_data->p2p_dev_addr, event.dev_addr, WS_MACSTR_LEN);
+
        if (dev_data->has_asp_services)
                ws_get_advertise_service(peer_path, (GList **)&(event.asp_services));
        if (dev_data->has_asp2_services)