mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
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:
@@ -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]);
|
netdev->d_mac.radio.nv_addr[4], netdev->d_mac.radio.nv_addr[5]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* The interface is now up */
|
||||||
|
|
||||||
|
netdev_carrier_on(netdev);
|
||||||
ret = OK;
|
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)
|
static int btnet_ifdown(FAR struct net_driver_s *netdev)
|
||||||
{
|
{
|
||||||
|
netdev_carrier_off(netdev);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user