bluetooth: miss carrier_[on/off] in bt_netdev

fix regression from https://github.com/apache/nuttx/pull/15237

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5
2025-02-10 09:15:00 +08:00
committed by Mateusz Szafoni
parent 1aced99ebb
commit a31d983161

View File

@@ -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;
}
@@ -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;
}