diff --git a/src/p2p.c b/src/p2p.c index c7c8d785..cb6cd98b 100644 --- a/src/p2p.c +++ b/src/p2p.c @@ -34,6 +34,7 @@ #include #include #include +#include #include @@ -977,6 +978,11 @@ static void p2p_group_event(enum ap_event_type type, const void *event_data, if (dev->conn_peer_added) break; + l_rtnl_set_linkmode_and_operstate(iwd_get_rtnl(), + netdev_get_ifindex(dev->conn_netdev), + IF_LINK_MODE_DEFAULT, IF_OPER_UP, + NULL, NULL, NULL); + dev->conn_peer_added = true; dev->conn_peer_ip = l_dhcp_lease_get_address(lease); l_timeout_remove(dev->conn_dhcp_timeout);