summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2004-07-30 17:40:57 +0000
committermycroft <mycroft@NetBSD.org>2004-07-30 17:40:57 +0000
commit85e28ec5ee76f525f524b6b3fed5946e2e209047 (patch)
tree7c158551107f900cf2ae7c2a491a57838ee94b69 /sys/dev
parent83d61f406aa96b6c6d75f1ce228923e9867222fd (diff)
Only discard beacons in AHDEMO mode, where we ignore management frames
completely. In particular, accept them in monitor mode (where we generally aren't doing anything unless we're in promiscuous mode anyway) and host-AP mode (where we want to see neighbor APs).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ath.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index 62f88a76cff..6c271ed086e 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ath.c,v 1.31 2004/07/28 08:57:40 dyoung Exp $ */
+/* $NetBSD: ath.c,v 1.32 2004/07/30 17:40:57 mycroft Exp $ */
/*-
* Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
@@ -41,7 +41,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.54 2004/04/05 04:42:42 sam Exp $");
#endif
#ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.31 2004/07/28 08:57:40 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.32 2004/07/30 17:40:57 mycroft Exp $");
#endif
/*
@@ -1453,9 +1453,7 @@ ath_calcrxfilter(struct ath_softc *sc)
| HAL_RX_FILTER_UCAST | HAL_RX_FILTER_BCAST | HAL_RX_FILTER_MCAST;
if (ic->ic_opmode != IEEE80211_M_STA)
rfilt |= HAL_RX_FILTER_PROBEREQ;
- if (ic->ic_opmode == IEEE80211_M_STA ||
- ic->ic_opmode == IEEE80211_M_IBSS ||
- ic->ic_state == IEEE80211_S_SCAN)
+ if (ic->ic_opmode != IEEE80211_M_AHDEMO)
rfilt |= HAL_RX_FILTER_BEACON;
if (ifp->if_flags & IFF_PROMISC)
rfilt |= HAL_RX_FILTER_PROM;