Skip to content

Commit

Permalink
bluetooth: miss carrier_[on/off] in bt_netdev
Browse files Browse the repository at this point in the history
fix regression from apache#15237

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 authored and raiden00pl committed Feb 10, 2025
1 parent 1aced99 commit a31d983
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wireless/bluetooth/bt_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ static int btnet_ifup(FAR struct net_driver_s *netdev)
netdev->d_mac.radio.nv_addr[4], netdev->d_mac.radio.nv_addr[5]);
#endif

/* The interface is now up */

netdev_carrier_on(netdev);
ret = OK;
}

Expand All @@ -687,6 +690,7 @@ static int btnet_ifup(FAR struct net_driver_s *netdev)

static int btnet_ifdown(FAR struct net_driver_s *netdev)
{
netdev_carrier_off(netdev);
return OK;
}

Expand Down

0 comments on commit a31d983

Please sign in to comment.