From 3d88dbc023de64645a976daab73ad51d633bf807 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sat, 3 Jan 2009 10:11:56 +0000 Subject: remove check for rfkill switch state using GP_CNTRL as it does not seem to work properly. it is checked later in wpi_post_alive() anyway. pointed out by many, further investigated by Tim van der Molen. --- sys/dev/pci/if_wpi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index 1af5776d5b6..5e0f5ad7963 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wpi.c,v 1.80 2008/12/22 18:20:47 damien Exp $ */ +/* $OpenBSD: if_wpi.c,v 1.81 2009/01/03 10:11:55 damien Exp $ */ /*- * Copyright (c) 2006-2008 @@ -3305,6 +3305,7 @@ wpi_init(struct ifnet *ifp) struct ieee80211com *ic = &sc->sc_ic; int error; +#ifdef notyet /* Check that the radio is not disabled by hardware switch. */ if (!(WPI_READ(sc, WPI_GP_CNTRL) & WPI_GP_CNTRL_RFKILL)) { printf("%s: radio is disabled by hardware switch\n", @@ -3312,7 +3313,7 @@ wpi_init(struct ifnet *ifp) error = EPERM; /* :-) */ goto fail; } - +#endif /* Read firmware images from the filesystem. */ if ((error = wpi_read_firmware(sc)) != 0) { printf("%s: could not read firmware\n", sc->sc_dev.dv_xname); -- cgit v1.2.3