Date: Fri, 28 Mar 2008 19:23:28 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 138849 for review Message-ID: <200803281923.m2SJNSLk012128@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=138849 Change 138849 by sam@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803281923.m2SJNSLk012128>