diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-03-11 20:19:12 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-03-11 20:19:12 +0000 |
commit | 747189748c89d10c35d4dc12e40fb8f0040a6193 (patch) | |
tree | 6d3cac9982567a7b2d3e05761d06ba4bfde313ab /sys/dev/ic/ral.c | |
parent | 2d53ef587d18ead9ef915d5863f44d312c9c6055 (diff) |
do not disable RF tune in monitor mode.
Diffstat (limited to 'sys/dev/ic/ral.c')
-rw-r--r-- | sys/dev/ic/ral.c | 5 |
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); |