From a07f1c4d689bde1eb060afcd656ce8bb1450c825 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Tue, 20 Oct 2009 04:54:43 +0000 Subject: [PATCH] 2009-10-20 Chris Johns * libnetworking/rtems/rtems_mii_ioctl_kern.c: Added IFM_ACTIVE and IFM_AVALID to the status for a link up. These are the supported but in the BSD stack. Before IFM_LINK_OK was set and this is a spare bit. --- cpukit/ChangeLog | 7 +++++++ cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index ae3500276d..fd2366548f 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,10 @@ +2009-10-20 Chris Johns + + * libnetworking/rtems/rtems_mii_ioctl_kern.c: Added IFM_ACTIVE and + IFM_AVALID to the status for a link up. These are the supported + but in the BSD stack. Before IFM_LINK_OK was set and this is a + spare bit. + 2009-10-16 Sebastian Huber * libblock/src/ramdisk.c: Removed file. diff --git a/cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c b/cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c index 1b036d6a96..0f9e61f174 100644 --- a/cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c +++ b/cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c @@ -118,7 +118,7 @@ rtems_mii_ioctl (struct rtems_mdio_info *info, void *uarg, int cmd, /* link status */ if (BMSR_LINK & bmsr) - options |= IFM_LINK_OK; + options |= IFM_LINK_OK | IFM_ACTIVE | IFM_AVALID; /* do we have autonegotiation disabled ? */ if (!(BMCR_AUTOEN & bmcr)) {