This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 58dcee641e73ea1b6c10be8366bf25f5ff8aa7b9 Author: chao.an <anc...@xiaomi.com> AuthorDate: Sat Jul 2 23:32:59 2022 +0800 net/netdev: move netdev_ifup/down to public header Signed-off-by: chao.an <anc...@xiaomi.com> --- include/nuttx/net/netdev.h | 11 +++++++++++ net/netdev/netdev.h | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/nuttx/net/netdev.h b/include/nuttx/net/netdev.h index 866e2cbfe2..fe55aab079 100644 --- a/include/nuttx/net/netdev.h +++ b/include/nuttx/net/netdev.h @@ -592,6 +592,17 @@ void neighbor_out(FAR struct net_driver_s *dev); int devif_loopback(FAR struct net_driver_s *dev); +/**************************************************************************** + * Name: netdev_ifup / netdev_ifdown + * + * Description: + * Bring the interface up/down + * + ****************************************************************************/ + +void netdev_ifup(FAR struct net_driver_s *dev); +void netdev_ifdown(FAR struct net_driver_s *dev); + /**************************************************************************** * Carrier detection * diff --git a/net/netdev/netdev.h b/net/netdev/netdev.h index a4a7659397..34ba13d6c5 100644 --- a/net/netdev/netdev.h +++ b/net/netdev/netdev.h @@ -90,17 +90,6 @@ typedef int (*netdev_callback_t)(FAR struct net_driver_s *dev, * Public Function Prototypes ****************************************************************************/ -/**************************************************************************** - * Name: netdev_ifup / netdev_ifdown - * - * Description: - * Bring the interface up/down - * - ****************************************************************************/ - -void netdev_ifup(FAR struct net_driver_s *dev); -void netdev_ifdown(FAR struct net_driver_s *dev); - /**************************************************************************** * Name: netdev_verify *