3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 13:59:24 +01:00

p2p: Set p2p_own_wfd->available by default

We need to set this flag true when the WFD service is first registered
as there's no WFD session and we're available for a new session.
This commit is contained in:
Andrew Zaborowski 2020-07-31 03:31:30 +02:00 committed by Denis Kenzior
parent c42de40a3b
commit 2dea8bcc69

View File

@ -4327,6 +4327,9 @@ static struct l_dbus_message *p2p_wfd_register(struct l_dbus *dbus,
if (p2p_own_wfd) if (p2p_own_wfd)
return dbus_error_already_exists(message); return dbus_error_already_exists(message);
/* Available for WFD Session by default */
props.available = true;
p2p_wfd_disconnect_watch = l_dbus_add_disconnect_watch(dbus, p2p_wfd_disconnect_watch = l_dbus_add_disconnect_watch(dbus,
l_dbus_message_get_sender(message), l_dbus_message_get_sender(message),
p2p_wfd_disconnect_watch_cb, NULL, p2p_wfd_disconnect_watch_cb, NULL,