summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-03-11 19:49:30 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-03-11 19:49:30 +0000
commit5a837d2ca6f84e180e9b905a33066e399dc02cc9 (patch)
treee9e5c8d0e158eab2e5a08dc490c9ae388747ef9e /sys
parentfc15f1634c97e7cfa228901aeac9b175adbc7517 (diff)
fix basic rates for 802.11g.
initialize power mode in ral_init().
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ral.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c
index be2c8f6c173..be437f8d062 100644
--- a/sys/dev/ic/ral.c
+++ b/sys/dev/ic/ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ral.c,v 1.18 2005/03/11 19:45:19 damien Exp $ */
+/* $OpenBSD: ral.c,v 1.19 2005/03/11 19:49:29 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -2371,12 +2371,15 @@ ral_init(struct ifnet *ifp)
for (i = 0; i < N(ral_def_mac); i++)
RAL_WRITE(sc, ral_def_mac[i].reg, ral_def_mac[i].val);
- /* set basic rates mask */
- RAL_WRITE(sc, RAL_ARCSR1, 0x15f);
-
IEEE80211_ADDR_COPY(ic->ic_myaddr, LLADDR(ifp->if_sadl));
ral_set_macaddr(sc, ic->ic_myaddr);
+ /* set power mode (CAM) */
+ RAL_WRITE(sc, RAL_TXCSR7, 0);
+
+ /* set supported basic rates (1, 2, 6, 12, 24) */
+ RAL_WRITE(sc, RAL_ARCSR1, 0x153);
+
ral_update_plcp(sc);
ral_update_led(sc, 0, 0);