summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-10-27 17:14:39 +0000
committersam <sam@FreeBSD.org>2008-10-27 17:14:39 +0000
commit216fa3b455113206831a8d053500104741c0bcd5 (patch)
tree05acafde53862011454b9524768169c83ae816d1 /sys/dev/ath
parent8c49088828c9d9ba2ff5348b9d54a436c0f95be9 (diff)
downloadFreeBSD-src-216fa3b455113206831a8d053500104741c0bcd5.zip
FreeBSD-src-216fa3b455113206831a8d053500104741c0bcd5.tar.gz
use the ic's opmode instead of our hal equivalent to check for adhoc mode;
they are always the same
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/if_ath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 155a368..81d2248 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -2588,7 +2588,7 @@ ath_calcrxfilter(struct ath_softc *sc)
if (ic->ic_opmode == IEEE80211_M_MONITOR || (ifp->if_flags & IFF_PROMISC))
rfilt |= HAL_RX_FILTER_PROM;
if (ic->ic_opmode == IEEE80211_M_STA ||
- sc->sc_opmode == HAL_M_IBSS ||
+ ic->ic_opmode == IEEE80211_M_IBSS ||
sc->sc_swbmiss || sc->sc_scanning)
rfilt |= HAL_RX_FILTER_BEACON;
/*
OpenPOWER on IntegriCloud