mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +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 */
|
/* Mark the interface as down */
|
||||||
|
|
||||||
dev->d_flags &= ~IFF_UP;
|
dev->d_flags &= ~(IFF_UP | IFF_RUNNING);
|
||||||
|
|
||||||
/* Update the driver status */
|
/* Update the driver status */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user