From 65596129609edfb742f595fd3b61ccbad913bce2 Mon Sep 17 00:00:00 2001 From: jiung-yu Date: Mon, 14 Nov 2022 01:03:36 +0900 Subject: [PATCH] [DA patch]Copy device address to p2p address if it is null Change-Id: Ib69a644c9dd83f3537b6f6984d660c9aaaa77e08 Signed-off-by: Yu jiung --- plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c b/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c index f720a5a..e7b4882 100644 --- a/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c +++ b/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c @@ -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) -- 2.7.4