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/728b3fa23c9a
branches: trunk
changeset: 805127:728b3fa23c9a
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 ae8abbc04f22 -r 728b3fa23c9a 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