wifi: clear IFF_RUNNING flag when ifdown
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
7467586d55
commit
51a262150d
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user