diff options
author | 2019-06-17 08:17:21 +0000 | |
---|---|---|
committer | 2019-06-17 08:17:21 +0000 | |
commit | a47e476b757b2246caede55cf82d19acbedfbbc3 (patch) | |
tree | 2b5637b424f9e6c2034c6e40977a3de7a857d85b | |
parent | Mention the ELF machine type EM_AARCH64. (diff) | |
download | wireguard-openbsd-a47e476b757b2246caede55cf82d19acbedfbbc3.tar.xz wireguard-openbsd-a47e476b757b2246caede55cf82d19acbedfbbc3.zip |
When reloading station address via TWSI is timed out, try to reload
station address from EEPROM.
From Brad.
-rw-r--r-- | sys/dev/pci/if_alc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_alc.c b/sys/dev/pci/if_alc.c index 314dc6e2655..373a72462a6 100644 --- a/sys/dev/pci/if_alc.c +++ b/sys/dev/pci/if_alc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_alc.c,v 1.50 2019/06/03 01:52:53 kevlo Exp $ */ +/* $OpenBSD: if_alc.c,v 1.51 2019/06/17 08:17:21 kevlo Exp $ */ /*- * Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org> * All rights reserved. @@ -652,6 +652,8 @@ alc_get_macaddr_816x(struct alc_softc *sc) if ((reg & SLD_START) == 0) break; } + if (i != 0) + reloaded++; } /* Try to reload station address from EEPROM or FLASH. */ |