summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-03-17 19:51:30 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-03-17 19:51:30 +0000
commitf13b58c8178cdbd5884a9e9d37d39b13b34a1947 (patch)
treea64b1d30c3efeb1b4cd81dab060836a420911099 /sys/dev/ic
parentbea1d0631b993dd4462f734ef0855c720974492b (diff)
fix ral_enable_tsf_sync() for hostap mode.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ral.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c
index 75a004cb8cb..d59e48c960f 100644
--- a/sys/dev/ic/ral.c
+++ b/sys/dev/ic/ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ral.c,v 1.34 2005/03/17 19:45:53 damien Exp $ */
+/* $OpenBSD: ral.c,v 1.35 2005/03/17 19:51:29 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -2301,7 +2301,7 @@ ral_enable_tsf_sync(struct ral_softc *sc)
RAL_WRITE(sc, RAL_CSR13, 0);
logcwmin = 5;
- preload = (ic->ic_opmode == IEEE80211_M_IBSS) ? 1024 : 384;
+ preload = (ic->ic_opmode == IEEE80211_M_STA) ? 384 : 1024;
tmp = logcwmin << 16 | preload;
RAL_WRITE(sc, RAL_BCNCSR1, tmp);