components: net: lwip: port: add netdev callback on link status change setting

- set netdev callback on link status change in netdev_add()

Signed-off-by: Jiading Xu <Jiading.Xu@hpmicro.com>
This commit is contained in:
Jiading Xu
2024-07-24 09:52:23 +08:00
committed by Rbb666
parent 04cad7f9c6
commit 79457efc49
2 changed files with 10 additions and 1 deletions
+5 -1
View File
@@ -19,7 +19,11 @@ if RT_USING_NETDEV
config NETDEV_USING_AUTO_DEFAULT
bool "Enable default netdev automatic change features"
default y
config NETDEV_USING_LINK_STATUS_CALLBACK
bool "Enable netdev callback on link status change"
default n
config NETDEV_USING_IPV6
bool "Enable IPV6 protocol support"
default n