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 51a262150dd66c4b79ce3a10429bc88d8ec05b46 Author: zhanghongyu <zhanghon...@xiaomi.com> AuthorDate: Mon Jul 4 16:20:15 2022 +0800 wifi: clear IFF_RUNNING flag when ifdown Signed-off-by: zhanghongyu <zhanghon...@xiaomi.com> --- net/netdev/netdev_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netdev/netdev_ioctl.c b/net/netdev/netdev_ioctl.c index 38151fb063..2f5a44f94d 100644 --- a/net/netdev/netdev_ioctl.c +++ b/net/netdev/netdev_ioctl.c @@ -1931,7 +1931,7 @@ int netdev_ifdown(FAR struct net_driver_s *dev) { /* Mark the interface as down */ - dev->d_flags &= ~IFF_UP; + dev->d_flags &= ~(IFF_UP | IFF_RUNNING); /* Update the driver status */