svn commit: r184350 - head/sys/dev/ath

Sam Leffler sam at FreeBSD.org
Mon Oct 27 10:14:39 PDT 2008


Author: sam
Date: Mon Oct 27 17:14:39 2008
New Revision: 184350
URL: http://svn.freebsd.org/changeset/base/184350

Log:
  use the ic's opmode instead of our hal equivalent to check for adhoc mode;
  they are always the same

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Mon Oct 27 17:12:41 2008	(r184349)
+++ head/sys/dev/ath/if_ath.c	Mon Oct 27 17:14:39 2008	(r184350)
@@ -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;
 	/*


More information about the svn-src-head mailing list