Minor corrections during integration of link status monitor
This commit is contained in:
parent
4766acc544
commit
c18504f820
@ -813,7 +813,7 @@ if NSH_NETINIT_THREAD
|
|||||||
config NSH_NETINIT_MONITOR
|
config NSH_NETINIT_MONITOR
|
||||||
bool "Monitor link state"
|
bool "Monitor link state"
|
||||||
default n
|
default n
|
||||||
depends on ARCH_PHY_INTERRUPT && NET_UDP && !DISABLE_SIGNALS && EXPERIMENTAL
|
depends on ARCH_PHY_INTERRUPT && NETDEV_PHY_IOCTL && NET_UDP && !DISABLE_SIGNALS && EXPERIMENTAL
|
||||||
---help---
|
---help---
|
||||||
By default the net initialization thread will bring-up the network
|
By default the net initialization thread will bring-up the network
|
||||||
then exit, freeing all of the resources that it required. This is a
|
then exit, freeing all of the resources that it required. This is a
|
||||||
|
@ -133,7 +133,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_NSH_NETINIT_THREAD) || !defined(CONFIG_ARCH_PHY_INTERRUPT) || \
|
#if !defined(CONFIG_NSH_NETINIT_THREAD) || !defined(CONFIG_ARCH_PHY_INTERRUPT) || \
|
||||||
!defined(CONFIG_NET_UDP) || defined(CONFIG_DISABLE_SIGNALS)
|
!defined(CONFIG_NETDEV_PHY_IOCTL) || !defined(CONFIG_NET_UDP) || \
|
||||||
|
defined(CONFIG_DISABLE_SIGNALS)
|
||||||
# undef CONFIG_NSH_NETINIT_MONITOR
|
# undef CONFIG_NSH_NETINIT_MONITOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -378,7 +378,7 @@ static int nsh_netinit_monitor(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
nvdbg("%s: devup=%d PHY address=%02x MSR=%04x\n",
|
nvdbg("%s: devup=%d PHY address=%02x MSR=%04x\n",
|
||||||
devup, ifr.ifr_name, ifr.ifr_mii_phy_id, ifr.ifr_mii_val_out);
|
ifr.ifr_name, devup, ifr.ifr_mii_phy_id, ifr.ifr_mii_val_out);
|
||||||
|
|
||||||
/* Check for link up or down */
|
/* Check for link up or down */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user