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:
parent
c42de40a3b
commit
2dea8bcc69
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user