PERFORCE change 138849 for review

Sam Leffler sam at FreeBSD.org
Fri Mar 28 12:23:29 PDT 2008


http://perforce.freebsd.org/chv.cgi?CH=138849

Change 138849 by sam at sam_ebb on 2008/03/28 19:22:28

	filter out PROMISC on hostap vaps so each driver doesn't need to
	do this (as was historically done to workaround the bridge)

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211.c#31 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211.c#31 (text+ko) ====

@@ -541,6 +541,14 @@
 	bit = 0;
 	TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next)
 		if (vap->iv_ifp->if_flags & flag) {
+			/*
+			 * XXX the bridge sets PROMISC but we don't want to
+			 * enable it on the device, discard here so all the
+			 * drivers don't need to special-case it
+			 */
+			if (flag == IFF_PROMISC &&
+			    vap->iv_opmode == IEEE80211_M_HOSTAP)
+				continue;
 			bit = 1;
 			break;
 		}


More information about the p4-projects mailing list