summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ral.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/ral.c')
-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);