net: l2: bluetooth: Remove invalid check

After network interfaces state handling rework, it's no longer correct
to verify the connection status on `net_if_up()`, as this only changes
the administrative state of the interface. The interface won't be put in
operational UP state until it's connected.

This check prevented the interface from being brought up during system
boot.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2022-12-09 13:20:29 +01:00 committed by Carles Cufí
commit f38d5f440f

View file

@ -136,14 +136,8 @@ static int net_bt_send(struct net_if *iface, struct net_pkt *pkt)
static int net_bt_enable(struct net_if *iface, bool state)
{
struct bt_if_conn *conn = net_bt_get_conn(iface);
NET_DBG("iface %p %s", iface, state ? "up" : "down");
if (state && conn->ipsp_chan.state != BT_L2CAP_CONNECTED) {
return -ENETDOWN;
}
return 0;
}