mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
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:
committed by
Petro Karashchenko
parent
b04c4972fe
commit
463f321316
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user