svn commit: r192014 - projects/mesh11s/sys/dev/ral

Rui Paulo rpaulo at FreeBSD.org
Tue May 12 09:38:52 UTC 2009


Author: rpaulo
Date: Tue May 12 09:38:51 2009
New Revision: 192014
URL: http://svn.freebsd.org/changeset/base/192014

Log:
  Program the rx filter to handle MBSS.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/mesh11s/sys/dev/ral/rt2560.c
  projects/mesh11s/sys/dev/ral/rt2661.c

Modified: projects/mesh11s/sys/dev/ral/rt2560.c
==============================================================================
--- projects/mesh11s/sys/dev/ral/rt2560.c	Tue May 12 09:28:45 2009	(r192013)
+++ projects/mesh11s/sys/dev/ral/rt2560.c	Tue May 12 09:38:51 2009	(r192014)
@@ -1350,7 +1350,8 @@ rt2560_beacon_expire(struct rt2560_softc
 	struct rt2560_tx_data *data;
 
 	if (ic->ic_opmode != IEEE80211_M_IBSS &&
-	    ic->ic_opmode != IEEE80211_M_HOSTAP)
+	    ic->ic_opmode != IEEE80211_M_HOSTAP &&
+	    ic->ic_opmode != IEEE80211_M_MBSS)
 		return;	
 
 	data = &sc->bcnq.data[sc->bcnq.next];
@@ -2705,7 +2706,8 @@ rt2560_init_locked(struct rt2560_softc *
 	tmp = RT2560_DROP_PHY_ERROR | RT2560_DROP_CRC_ERROR;
 	if (ic->ic_opmode != IEEE80211_M_MONITOR) {
 		tmp |= RT2560_DROP_CTL | RT2560_DROP_VERSION_ERROR;
-		if (ic->ic_opmode != IEEE80211_M_HOSTAP)
+		if (ic->ic_opmode != IEEE80211_M_HOSTAP &&
+		    ic->ic_opmode != IEEE80211_M_MBSS)
 			tmp |= RT2560_DROP_TODS;
 		if (!(ifp->if_flags & IFF_PROMISC))
 			tmp |= RT2560_DROP_NOT_TO_ME;

Modified: projects/mesh11s/sys/dev/ral/rt2661.c
==============================================================================
--- projects/mesh11s/sys/dev/ral/rt2661.c	Tue May 12 09:28:45 2009	(r192013)
+++ projects/mesh11s/sys/dev/ral/rt2661.c	Tue May 12 09:38:51 2009	(r192014)
@@ -2441,7 +2441,8 @@ rt2661_init_locked(struct rt2661_softc *
 	if (ic->ic_opmode != IEEE80211_M_MONITOR) {
 		tmp |= RT2661_DROP_CTL | RT2661_DROP_VER_ERROR |
 		       RT2661_DROP_ACKCTS;
-		if (ic->ic_opmode != IEEE80211_M_HOSTAP)
+		if (ic->ic_opmode != IEEE80211_M_HOSTAP &&
+		    ic->ic_opmode != IEEE80211_M_MBSS)
 			tmp |= RT2661_DROP_TODS;
 		if (!(ifp->if_flags & IFF_PROMISC))
 			tmp |= RT2661_DROP_NOT_TO_ME;


More information about the svn-src-projects mailing list