diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2024-01-02 17:39:09 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2024-01-02 17:39:09 +0000 |
commit | 60ddc19d1ff40d13effda66a4898cf9a8cb0f46b (patch) | |
tree | f68da7af84f886650a390826ff754591ab10c490 /sys/dev | |
parent | f546edf2b716fc8e33c4de89789589462ed194c9 (diff) |
set attached flag properly when fw fails to load during config_mountroot()
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/qwx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c index 3ed1b4e91d5..e9c4dbf2d6a 100644 --- a/sys/dev/ic/qwx.c +++ b/sys/dev/ic/qwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qwx.c,v 1.1 2023/12/28 17:36:29 stsp Exp $ */ +/* $OpenBSD: qwx.c,v 1.2 2024/01/02 17:39:08 stsp Exp $ */ /* * Copyright 2023 Stefan Sperling <stsp@openbsd.org> @@ -208,6 +208,8 @@ qwx_init(struct ifnet *ifp) ieee80211_begin_scan(ifp); } else { + sc->attached = 1; + /* Configure MAC address at boot-time. */ error = if_setlladdr(ifp, ic->ic_myaddr); if (error) @@ -18329,8 +18331,6 @@ qwx_attach(struct qwx_softc *sc) if (error) return error; - sc->attached = 1; - /* Turn device off until interface comes up. */ qwx_core_deinit(sc); |