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:
parent
1aced99ebb
commit
a31d983161
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue