PERFORCE change 142729 for review
Sam Leffler
sam at FreeBSD.org
Mon Jun 2 04:18:03 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=142729
Change 142729 by sam at sam_ebb on 2008/06/02 04:17:52
prepare for ani change
Affected files ...
.. //depot/projects/vap/sys/dev/ath/if_ath.c#83 edit
Differences ...
==== //depot/projects/vap/sys/dev/ath/if_ath.c#83 (text+ko) ====
@@ -2519,10 +2519,10 @@
*
* o always accept unicast, broadcast, and multicast traffic
* o accept PHY error frames when hardware doesn't have MIB support
- * to count and we need them for ANI (sta mode only at the moment)
+ * to count and we need them for ANI (sta mode only until recently)
* and we are not scanning (ANI is disabled)
- * NB: only with recent hal's; older hal's add rx filter bits out
- * of sight and we need to blindly preserve them
+ * NB: older hal's add rx filter bits out of sight and we need to
+ * blindly preserve them
* o probe request frames are accepted only when operating in
* hostap, adhoc, or monitor modes
* o enable promiscuous mode
@@ -2549,15 +2549,17 @@
struct ieee80211com *ic = ifp->if_l2com;
u_int32_t rfilt;
+ rfilt = HAL_RX_FILTER_UCAST | HAL_RX_FILTER_BCAST | HAL_RX_FILTER_MCAST;
#if HAL_ABI_VERSION < 0x08011600
- rfilt = (ath_hal_getrxfilter(sc->sc_ah) &
- (HAL_RX_FILTER_PHYRADAR | HAL_RX_FILTER_PHYERR))
- | HAL_RX_FILTER_UCAST | HAL_RX_FILTER_BCAST | HAL_RX_FILTER_MCAST;
-#else
- rfilt = HAL_RX_FILTER_UCAST | HAL_RX_FILTER_BCAST | HAL_RX_FILTER_MCAST;
+ rfilt |= (ath_hal_getrxfilter(sc->sc_ah) &
+ (HAL_RX_FILTER_PHYRADAR | HAL_RX_FILTER_PHYERR));
+#elsif HAL_ABI_VERSION < 0x08060100
if (ic->ic_opmode == IEEE80211_M_STA &&
!sc->sc_needmib && !sc->sc_scanning)
rfilt |= HAL_RX_FILTER_PHYERR;
+#else
+ if (!sc->sc_needmib && !sc->sc_scanning)
+ rfilt |= HAL_RX_FILTER_PHYERR;
#endif
if (ic->ic_opmode != IEEE80211_M_STA)
rfilt |= HAL_RX_FILTER_PROBEREQ;
More information about the p4-projects
mailing list