diff options
author | 2005-07-02 23:17:36 +0000 | |
---|---|---|
committer | 2005-07-02 23:17:36 +0000 | |
commit | 6db4ab615104e7fb8f9a292d3580a9ed85255b33 (patch) | |
tree | 6a86723b74091725449d9e00e2262d9bca69f853 | |
parent | clear IFF_RUNNING & IFF_OACTIVE in ral_stop() before de-allocating resources. (diff) | |
download | wireguard-openbsd-6db4ab615104e7fb8f9a292d3580a9ed85255b33.tar.xz wireguard-openbsd-6db4ab615104e7fb8f9a292d3580a9ed85255b33.zip |
clear IFF_RUNNING & IFF_OACTIVE in rl_stop() before de-allocating resources.
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 81b3a5e4d0d..e69096eada8 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.40 2005/06/09 03:14:43 brad Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.41 2005/07/02 23:17:36 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1178,6 +1178,8 @@ void rl_stop(sc) timeout_del(&sc->sc_tick_tmo); + ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE) + CSR_WRITE_1(sc, RL_COMMAND, 0x00); CSR_WRITE_2(sc, RL_IMR, 0x0000); @@ -1198,8 +1200,6 @@ void rl_stop(sc) 0x00000000); } } - - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); } int |