summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-04-07 14:19:53 +0000
committermiod <miod@openbsd.org>2011-04-07 14:19:53 +0000
commit0329e7f1f570c94a54d26ad16fd2a80c63b56f60 (patch)
tree6b558a610a223578ca6b78c0c63d4b7771605742
parentmerge vfs_conf.c and vfs_init.c and retire vfs_conf.c; (diff)
downloadwireguard-openbsd-0329e7f1f570c94a54d26ad16fd2a80c63b56f60.tar.xz
wireguard-openbsd-0329e7f1f570c94a54d26ad16fd2a80c63b56f60.zip
Make sure the eeprom pointer is correctly initialized in
ar9380_spur_mitigate_ofdm().
-rw-r--r--sys/dev/ic/ar9380.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar9380.c b/sys/dev/ic/ar9380.c
index be736aba06f..59b5d1fedac 100644
--- a/sys/dev/ic/ar9380.c
+++ b/sys/dev/ic/ar9380.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar9380.c,v 1.13 2011/01/05 21:31:34 damien Exp $ */
+/* $OpenBSD: ar9380.c,v 1.14 2011/04/07 14:19:53 miod Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
@@ -543,7 +543,7 @@ void
ar9380_spur_mitigate_ofdm(struct athn_softc *sc, struct ieee80211_channel *c,
struct ieee80211_channel *extc)
{
- const struct ar9380_eeprom *eep;
+ const struct ar9380_eeprom *eep = sc->eep;
const uint8_t *spurchans;
uint32_t reg;
int idx, spur_delta_phase, spur_off, range, i;