From 96595fa16e5eb1b3b82afd366452b2b698cf0c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D1=85=D0=B2=D0=B0=D1=82=D0=BA=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=A4=D0=B5=D0=B4=D0=BE=D1=80=D0=BE=D0=B2=D0=BD=D0=B0?= Date: Wed, 23 Nov 2022 15:13:38 +0000 Subject: [PATCH] pkg/nimble: signal LINK_UP on initialisation --- pkg/nimble/netif/nimble_netif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/nimble/netif/nimble_netif.c b/pkg/nimble/netif/nimble_netif.c index ffe29f5ed8..e133f6455a 100644 --- a/pkg/nimble/netif/nimble_netif.c +++ b/pkg/nimble/netif/nimble_netif.c @@ -207,6 +207,10 @@ static inline int _netdev_init(netdev_t *dev) (void)res; bluetil_addr_swapped_cp(tmp, _netif.l2addr); + + /* signal link UP */ + dev->event_callback(dev, NETDEV_EVENT_LINK_UP); + return 0; }