wifi: clear IFF_RUNNING flag when ifdown

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2022-07-04 16:20:15 +08:00 committed by Xiang Xiao
parent 7467586d55
commit 51a262150d

View File

@ -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 */