diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2019-03-31 11:00:12 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2019-03-31 11:00:12 +0000 |
commit | 6c04750d6d738eb826af9c4050428e99b366d241 (patch) | |
tree | 536682a0398c868b233de354bae4c97f52370d19 /sys | |
parent | fa5052953c5fa14bc88c6fc20a2721299b178f15 (diff) |
AR9287-based usb devices use GPIO pin 10 for LED, not 8.
Tested with TP-LINK TL-WN821N V3.
ok stsp@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ar9287.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar9287.c b/sys/dev/ic/ar9287.c index ebe030cdf09..df89bf7d767 100644 --- a/sys/dev/ic/ar9287.c +++ b/sys/dev/ic/ar9287.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar9287.c,v 1.27 2019/03/29 11:04:40 stsp Exp $ */ +/* $OpenBSD: ar9287.c,v 1.28 2019/03/31 11:00:11 kevlo Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -104,7 +104,7 @@ ar9287_attach(struct athn_softc *sc) AR9287_HTC_EEP_START_LOC : AR9287_EEP_START_LOC; sc->eep_size = sizeof(struct ar9287_eeprom); sc->ngpiopins = (sc->flags & ATHN_FLAG_USB) ? 16 : 11; - sc->led_pin = 8; + sc->led_pin = (sc->flags & ATHN_FLAG_USB) ? 10 : 8; sc->workaround = AR9285_WA_DEFAULT; sc->ops.setup = ar9287_setup; sc->ops.swap_rom = ar9287_swap_rom; |