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:
parent
002e5d541f
commit
f38d5f440f
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue