diff options
author | 2004-12-06 09:05:51 +0000 | |
---|---|---|
committer | 2004-12-06 09:05:51 +0000 | |
commit | 02d3044949fa9e8c0eaad6e2e959dbe3b8625f86 (patch) | |
tree | b46d334092cce1508231e8cdba9e0ad951ed1f77 | |
parent | when loading the file information from the Entries file, open it in (diff) | |
download | wireguard-openbsd-02d3044949fa9e8c0eaad6e2e959dbe3b8625f86.tar.xz wireguard-openbsd-02d3044949fa9e8c0eaad6e2e959dbe3b8625f86.zip |
dont try and detect if the external firmware is already loaded by changing
the channel on atu devices with intersil radios. it seems to crash the
firmware.
from daan vreeken, tested by mitja muzenic
-rw-r--r-- | sys/dev/usb/if_atu.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c index 9b68b82179d..1fa58984a84 100644 --- a/sys/dev/usb/if_atu.c +++ b/sys/dev/usb/if_atu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_atu.c,v 1.38 2004/12/05 12:25:59 dlg Exp $ */ +/* $OpenBSD: if_atu.c,v 1.39 2004/12/06 09:05:51 dlg Exp $ */ /* * Copyright (c) 2003, 2004 * Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved. @@ -945,11 +945,13 @@ atu_upload_external_firmware(struct atu_softc *sc) * channel number. If we succeed, external firmware must have been * already uploaded... */ - err = atu_get_mib(sc, MIB_PHY__CHANNEL, &channel); - if (! err) { - DPRINTF(("%s: external firmware has already been " - "downloaded\n", USBDEVNAME(sc->atu_dev))); - return 0; + if (sc->atu_radio != RadioIntersil) { + err = atu_get_mib(sc, MIB_PHY__CHANNEL, &channel); + if (! err) { + DPRINTF(("%s: external firmware has already been " + "downloaded\n", USBDEVNAME(sc->atu_dev))); + return (0); + } } switch (sc->atu_radio) { |