From 5506a4d228a5d39b47fdbc2dcfa863f1b5044d80 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 2 May 2019 17:01:17 +0300 Subject: [PATCH] net: bt: Set NET_IF_NO_AUTO_START flag This make use of NET_IF_NO_AUTO_START flag so Bluetooth interfaces are not automatically enabled after initialized. Signed-off-by: Luiz Augusto von Dentz --- subsys/net/l2/bluetooth/bluetooth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/net/l2/bluetooth/bluetooth.c b/subsys/net/l2/bluetooth/bluetooth.c index f1ab5bd64215cb..b9c277794fc399 100644 --- a/subsys/net/l2/bluetooth/bluetooth.c +++ b/subsys/net/l2/bluetooth/bluetooth.c @@ -292,6 +292,8 @@ static void bt_iface_init(struct net_if *iface) conn->iface = iface; + net_if_flag_set(iface, NET_IF_NO_AUTO_START); + #if defined(CONFIG_NET_L2_BT_ZEP1656) /* Workaround Linux bug, see: * https://github.com/zephyrproject-rtos/zephyr/issues/3111