Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Consistently take the interface down when the ra...



details:   https://anonhg.NetBSD.org/src/rev/b2e5a61a7d29
branches:  trunk
changeset: 334985:b2e5a61a7d29
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Fri Dec 19 11:54:02 2014 +0000

description:
Consistently take the interface down when the radio swicth is off.

diffstat:

 sys/dev/pci/if_wpi.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 080951d69b74 -r b2e5a61a7d29 sys/dev/pci/if_wpi.c
--- a/sys/dev/pci/if_wpi.c      Fri Dec 19 10:59:21 2014 +0000
+++ b/sys/dev/pci/if_wpi.c      Fri Dec 19 11:54:02 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wpi.c,v 1.68 2014/08/08 10:17:07 jmcneill Exp $     */
+/*     $NetBSD: if_wpi.c,v 1.69 2014/12/19 11:54:02 bouyer Exp $       */
 
 /*-
  * Copyright (c) 2006, 2007
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.68 2014/08/08 10:17:07 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.69 2014/12/19 11:54:02 bouyer Exp $");
 
 /*
  * Driver for Intel PRO/Wireless 3945ABG 802.11 network adapters.
@@ -3170,6 +3170,7 @@
        if (wpi_getrfkill(sc)) {
                aprint_error_dev(sc->sc_dev,
                    "radio is disabled by hardware switch\n");
+               ifp->if_flags &= ~IFF_UP;
                error = EBUSY;
                goto fail1;
        }



Home | Main Index | Thread Index | Old Index