Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/pci Fix power-up condition for the card.
details: https://anonhg.NetBSD.org/src-all/rev/ddf5a8f946b3
branches: trunk
changeset: 371022:ddf5a8f946b3
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Sat Jan 09 14:42:34 2021 +0100
description:
Fix power-up condition for the card.
If either we never did load firmware, or we stopped the hardware
(like we do after attach), bring it into full action once any VAP
on it goes IFF_UP.
diffstat:
sys/dev/pci/if_iwm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 410e6b3eff7f -r ddf5a8f946b3 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Sat Jan 02 12:52:37 2021 +0100
+++ b/sys/dev/pci/if_iwm.c Sat Jan 09 14:42:34 2021 +0100
@@ -8271,7 +8271,7 @@
/*
* One of our (there-can-only-be-one with this driver) VAPs has
- * changes IFF_UP state...
+ * changed IFF_UP state...
*/
static void
iwm_parent(struct ieee80211com *ic)
@@ -8281,7 +8281,8 @@
bool startall = false;
if (ic->ic_nrunning > 0) {
- if ((sc->sc_flags & IWM_FLAG_FW_LOADED) == 0) {
+ if ((sc->sc_flags & (IWM_FLAG_FW_LOADED|IWM_FLAG_STOPPED))
+ != IWM_FLAG_FW_LOADED) {
iwm_init(vap->iv_ifp);
startall = true;
} else {
Home |
Main Index |
Thread Index |
Old Index