diff options
author | kn <kn@cvs.openbsd.org> | 2019-01-13 22:57:38 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2019-01-13 22:57:38 +0000 |
commit | 0f173df9d8506997f78c3516240cdfc82b39f1ae (patch) | |
tree | cd196f7463d054989340d993e72377590b84e25a /sys/dev/pci | |
parent | d59ee860fc128bf4f76d3819a5aaa53a7b50a80b (diff) |
Remove redundant RF switch notice
Toggling the hardware switch already gets communicated through
"iwn0: RF switch: radio disabled" and "iwn0: RF switch: radio enabled"
so stating in between that the transmitter is turned off does not provide
any further information.
iwn_stop() effects the RUNNING flag and controls power, but does not
pull the interface up or down, so adjust the misleading comment while
here.
OK stsp, tested by sashan
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_iwn.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c index cc86237e4de..9203df0be04 100644 --- a/sys/dev/pci/if_iwn.c +++ b/sys/dev/pci/if_iwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwn.c,v 1.204 2019/01/11 17:12:38 kn Exp $ */ +/* $OpenBSD: if_iwn.c,v 1.205 2019/01/13 22:57:37 kn Exp $ */ /*- * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr> @@ -2612,10 +2612,7 @@ iwn_notif_intr(struct iwn_softc *sc) DPRINTF(("state changed to %x\n", letoh32(*status))); if (letoh32(*status) & 1) { - /* The radio button has to be pushed. */ - printf("%s: Radio transmitter is off\n", - sc->sc_dev.dv_xname); - /* Turn the interface down. */ + /* Radio transmitter is off, power down. */ iwn_stop(ifp, 1); return; /* No further processing. */ } |