mirror of
https://github.com/apache/nuttx.git
synced 2025-12-11 04:35:55 +08:00
wifi: clear IFF_RUNNING flag when ifdown
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user