summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/ath.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2005-05-24 21:46:17 +0000
committerreyk <reyk@openbsd.org>2005-05-24 21:46:17 +0000
commitdcc633efd5143e7b79751a8caad5fa986f724abd (patch)
tree7d3b8a697e99fcf2a796477eb5b7bca44062df53 /sys/dev/ic/ath.c
parentOnly redistribute networks if the interface they depend on is actually (diff)
downloadwireguard-openbsd-dcc633efd5143e7b79751a8caad5fa986f724abd.tar.xz
wireguard-openbsd-dcc633efd5143e7b79751a8caad5fa986f724abd.zip
ath_hal_rx_monitor should be used for link state monitoring instead of
setting the promisc mode. rename it to ath_hal_rx_signal and remove the incorrect promisc flag. this should fix some problems with ath running in forwarding mode.
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r--sys/dev/ic/ath.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index 3ac8a96442b..5c4762f15d6 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.25 2005/05/11 05:15:01 reyk Exp $ */
+/* $OpenBSD: ath.c,v 1.26 2005/05/24 21:46:18 reyk Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -2051,7 +2051,7 @@ ath_rx_proc(void *arg, int npending)
TAILQ_INSERT_TAIL(&sc->sc_rxbuf, bf, bf_list);
} while (ath_rxbuf_init(sc, bf) == 0);
- ath_hal_set_rx_monitor(ah); /* rx signal state monitoring */
+ ath_hal_set_rx_signal(ah); /* rx signal state monitoring */
ath_hal_start_rx(ah); /* in case of RXEOL */
if ((ifp->if_flags & IFF_OACTIVE) == 0 && !IFQ_IS_EMPTY(&ifp->if_snd))
@@ -2597,7 +2597,6 @@ ath_stoprecv(struct ath_softc *sc)
ath_hal_stop_pcu_recv(ah); /* disable PCU */
ath_hal_set_rx_filter(ah, 0); /* clear recv filter */
ath_hal_stop_rx_dma(ah); /* disable DMA engine */
- DELAY(3000); /* long enough for 1 frame */
#ifdef AR_DEBUG
if (ath_debug & ATH_DEBUG_RESET) {
struct ath_buf *bf;