diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-02-23 22:17:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-02-23 22:17:06 +0000 |
commit | c4a281f27a1841a402ade0fbf105595a914124f0 (patch) | |
tree | 08c53d34a31f229cc011922bf105e36354933b39 | |
parent | 00765431e1a6643b372b570b6a9a91ae0ddf2da6 (diff) |
Another two missing htoleX() for big endian support. Still more missing
but now I'm able to receive packets on macppc. OK mglocker@
-rw-r--r-- | sys/dev/ic/acx.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c index 39b882fd93f..fb23268a2a5 100644 --- a/sys/dev/ic/acx.c +++ b/sys/dev/ic/acx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acx.c,v 1.62 2007/02/21 14:25:51 claudio Exp $ */ +/* $OpenBSD: acx.c,v 1.63 2007/02/23 22:17:05 claudio Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -768,17 +768,11 @@ acx_write_config(struct acx_softc *sc, struct acx_config *conf) /* What we want to receive and how to receive */ /* XXX may not belong here, acx_init() */ - rx_opt.opt1 = RXOPT1_FILT_FDEST | RXOPT1_INCL_RXBUF_HDR; - rx_opt.opt2 = RXOPT2_RECV_ASSOC_REQ | - RXOPT2_RECV_AUTH | - RXOPT2_RECV_BEACON | - RXOPT2_RECV_CF | - RXOPT2_RECV_CTRL | - RXOPT2_RECV_DATA | - RXOPT2_RECV_MGMT | - RXOPT2_RECV_PROBE_REQ | - RXOPT2_RECV_PROBE_RESP | - RXOPT2_RECV_OTHER; + rx_opt.opt1 = htole16(RXOPT1_FILT_FDEST | RXOPT1_INCL_RXBUF_HDR); + rx_opt.opt2 = htole16(RXOPT2_RECV_ASSOC_REQ | RXOPT2_RECV_AUTH | + RXOPT2_RECV_BEACON | RXOPT2_RECV_CF | RXOPT2_RECV_CTRL | + RXOPT2_RECV_DATA | RXOPT2_RECV_MGMT | RXOPT2_RECV_PROBE_REQ | + RXOPT2_RECV_PROBE_RESP | RXOPT2_RECV_OTHER); if (acx_set_rxopt_conf(sc, &rx_opt) != 0) { printf("%s: can't set RX option\n", ifp->if_xname); return (ENXIO); |