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
1 changed files with 3 additions and 0 deletions

View File

@ -4327,6 +4327,9 @@ static struct l_dbus_message *p2p_wfd_register(struct l_dbus *dbus,
if (p2p_own_wfd)
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,
l_dbus_message_get_sender(message),
p2p_wfd_disconnect_watch_cb, NULL,