diff options
author | 2009-01-03 10:11:55 +0000 | |
---|---|---|
committer | 2009-01-03 10:11:55 +0000 | |
commit | 2709256fc15e063d7868778bf8e3a300a46cd5fd (patch) | |
tree | dc320a27e9c900d0b36419a1c5f0c7d6d8a4a63d | |
parent | Update to the latest version of the RT2870/RT3070 firmware. (diff) | |
download | wireguard-openbsd-2709256fc15e063d7868778bf8e3a300a46cd5fd.tar.xz wireguard-openbsd-2709256fc15e063d7868778bf8e3a300a46cd5fd.zip |
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.
-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 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); |