diff options
| author | bouyer <bouyer@NetBSD.org> | 2014-12-19 11:54:02 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2014-12-19 11:54:02 +0000 |
| commit | d30eb1796b32b0840f303530ab6a35b689c02aaf (patch) | |
| tree | f1ee2d92f52184d5ef7f31a8686c0190ac03f5c4 /sys/dev | |
| parent | 2404a3d9479e127b75fef459abd333155563a6ff (diff) | |
Consistently take the interface down when the radio swicth is off.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/if_wpi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index b6ecd48d85a..594897b8c7d 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -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 @@ wpi_init(struct ifnet *ifp) 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; } |
