From: jiung-yu Date: Sun, 13 Nov 2022 16:03:36 +0000 (+0900) Subject: [DA patch]Copy device address to p2p address if it is null X-Git-Tag: accepted/tizen/7.0/unified/20221207.014410~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fwifi-direct-manager.git;a=commitdiff_plain;h=65596129609edfb742f595fd3b61ccbad913bce2 [DA patch]Copy device address to p2p address if it is null Change-Id: Ib69a644c9dd83f3537b6f6984d660c9aaaa77e08 Signed-off-by: Yu jiung --- 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)