diff options
author | 2010-04-03 22:24:05 +0000 | |
---|---|---|
committer | 2010-04-03 22:24:05 +0000 | |
commit | 80dd036158453ec2f0030142bdcbd9ee9940c3e9 (patch) | |
tree | d342d64ce55c80576e5dff5859b4d3e9af61ca11 /sys | |
parent | Use hw.product sysctl to tell whether we are installing on a Gdium Liberty (diff) | |
download | wireguard-openbsd-80dd036158453ec2f0030142bdcbd9ee9940c3e9.tar.xz wireguard-openbsd-80dd036158453ec2f0030142bdcbd9ee9940c3e9.zip |
Set the RL_FLAG_MACSLEEP flag for the RTL8103E chipset.
Currently a noop as the code for RL_FLAG_MACSLEEP hasn't been added yet.
From FreeBSD via Brad.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/re.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index 64b152af1eb..6d1b2efb248 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.117 2010/02/17 22:16:34 kettenis Exp $ */ +/* $OpenBSD: re.c,v 1.118 2010/04/03 22:24:05 sthen Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -819,9 +819,11 @@ re_attach(struct rl_softc *sc, const char *intrstr) sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_INVMAR | RL_FLAG_PHYWAKE; break; + case RL_HWREV_8103E: + sc->rl_flags |= RL_FLAG_MACSLEEP; + /* FALLTHROUGH */ case RL_HWREV_8102E: case RL_HWREV_8102EL: - case RL_HWREV_8103E: sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_INVMAR | RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD; |