summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/ath.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2005-05-27 04:10:06 +0000
committerreyk <reyk@openbsd.org>2005-05-27 04:10:06 +0000
commitbba49c9d4d26fc65d678b4a6819519f8afac16a5 (patch)
treeadfa647389bebe7cff3bd913b888ef6d5c7095b9 /sys/dev/ic/ath.c
parentallow 'tagged' in 'anchor' rules (without complaining about missing (diff)
downloadwireguard-openbsd-bba49c9d4d26fc65d678b4a6819519f8afac16a5.tar.xz
wireguard-openbsd-bba49c9d4d26fc65d678b4a6819519f8afac16a5.zip
- disable the gpio user interface for now, it's just an unimportant
button which is not yet available on non-i386 platforms - fix endianess and attachement on big endian platforms (tested on macppc - ath attaches correctly, receives frames but assoc still fails)
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r--sys/dev/ic/ath.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index 5c4762f15d6..878d76c9f2b 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.26 2005/05/24 21:46:18 reyk Exp $ */
+/* $OpenBSD: ath.c,v 1.27 2005/05/27 04:10:06 reyk Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -80,7 +80,9 @@
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_compat.h>
+#ifdef notyet
#include <dev/gpio/gpiovar.h>
+#endif
#include <dev/ic/athvar.h>
int ath_init(struct ifnet *);
@@ -141,12 +143,14 @@ int ath_enable(struct ath_softc *);
void ath_disable(struct ath_softc *);
void ath_power(int, void *);
+#ifdef notyet
#if NGPIO > 0
int ath_gpio_attach(struct ath_softc *);
int ath_gpio_pin_read(void *, int);
void ath_gpio_pin_write(void *, int, int);
void ath_gpio_pin_ctl(void *, int, int);
#endif
+#endif
#ifdef AR_DEBUG
void ath_printrxbuf(struct ath_buf *, int);
@@ -409,10 +413,12 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
printf(", %s, address %s\n", ieee80211_regdomain2name(ath_regdomain),
ether_sprintf(ic->ic_myaddr));
+#ifdef notyet
#if NGPIO > 0
if (ath_gpio_attach(sc) == 0)
sc->sc_flags |= ATH_GPIO;
#endif
+#endif
return 0;
bad2:
@@ -3230,6 +3236,7 @@ ath_printtxbuf(struct ath_buf *bf, int done)
}
#endif /* AR_DEBUG */
+#ifdef notyet
#if NGPIO > 0
int
ath_gpio_attach(struct ath_softc *sc)
@@ -3302,3 +3309,4 @@ ath_gpio_pin_ctl(void *arg, int pin, int flags)
}
}
#endif /* NGPIO */
+#endif