wireless/ieee802154: Don't set IFF_DOWN in mac802154netdev_register

since IFF_DOWN is only used for request, not for status. Instead,
IFF_UP should be used to query the netdev status. The IFF_DOWN
related macros are also removed to avoid the confuse.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-07-18 18:19:55 +08:00
committed by Petro Karashchenko
parent b04c4972fe
commit 463f321316
2 changed files with 0 additions and 4 deletions
-1
View File
@@ -1334,7 +1334,6 @@ int mac802154netdev_register(MACHANDLE mac)
* it up
*/
dev->d_flags = IFF_DOWN;
return macnet_ifdown(&priv->md_dev.r_dev);
errout: