Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2009 09:38:51 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r192014 - projects/mesh11s/sys/dev/ral
Message-ID:  <200905120938.n4C9cpJJ017162@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905120938.n4C9cpJJ017162>