diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-05-27 04:10:07 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-05-27 04:10:07 +0000 |
commit | 0ad0d3638f6ef0319b6d344ba9b7cceaf67e351d (patch) | |
tree | a0e021a4927ac466a1c07112801ef594a60947d7 /sys/dev/ic/ath.c | |
parent | 78d1e449e770d8abfe489fa57c3b9c6f2993cc20 (diff) |
- 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.c | 10 |
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 |