summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ral.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-03-11 20:19:12 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-03-11 20:19:12 +0000
commit747189748c89d10c35d4dc12e40fb8f0040a6193 (patch)
tree6d3cac9982567a7b2d3e05761d06ba4bfde313ab /sys/dev/ic/ral.c
parent2d53ef587d18ead9ef915d5863f44d312c9c6055 (diff)
do not disable RF tune in monitor mode.
Diffstat (limited to 'sys/dev/ic/ral.c')
-rw-r--r--sys/dev/ic/ral.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c
index 90fccebfff8..28330256142 100644
--- a/sys/dev/ic/ral.c
+++ b/sys/dev/ic/ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ral.c,v 1.24 2005/03/11 20:14:59 damien Exp $ */
+/* $OpenBSD: ral.c,v 1.25 2005/03/11 20:19:11 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -2188,7 +2188,8 @@ ral_set_chan(struct ral_softc *sc, struct ieee80211_channel *c)
break;
}
- if (ic->ic_state != IEEE80211_S_SCAN) {
+ if (ic->ic_opmode != IEEE80211_M_MONITOR &&
+ ic->ic_state != IEEE80211_S_SCAN) {
/* set Japan filter bit for channel 14 */
tmp = ral_bbp_read(sc, 70);