From 51a262150dd66c4b79ce3a10429bc88d8ec05b46 Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Mon, 4 Jul 2022 16:20:15 +0800 Subject: [PATCH] wifi: clear IFF_RUNNING flag when ifdown Signed-off-by: zhanghongyu --- 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 */