Date: Wed, 18 May 2005 00:07:22 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 77118 for review Message-ID: <200505180007.j4I07Mkf062247@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=77118 Change 77118 by sam@sam_ebb on 2005/05/18 00:06:26 propagate all capabilities other than the opmode ones when creating a vap; eliminates the need for IEEE80211_C_COMMON Affected files ... .. //depot/projects/vap/sys/net80211/ieee80211.c#11 edit Differences ... ==== //depot/projects/vap/sys/net80211/ieee80211.c#11 (text+ko) ==== @@ -229,6 +229,9 @@ ieee80211_vap_setup(struct ieee80211com *ic, struct ieee80211vap *vap, const char name[IFNAMSIZ], int unit, int opmode) { +#define IEEE80211_C_OPMODE \ + (IEEE80211_C_IBSS | IEEE80211_C_HOSTAP | IEEE80211_C_AHDEMO | \ + IEEE80211_C_MONITOR) struct ifnet *ifp; ifp = &vap->iv_if; @@ -246,7 +249,7 @@ vap->iv_ic = ic; vap->iv_flags = ic->ic_flags; /* propagate common flags */ - vap->iv_caps = ic->ic_caps & IEEE80211_C_COMMON; + vap->iv_caps = ic->ic_caps &~ IEEE80211_C_OPMODE; vap->iv_opmode = opmode; switch (opmode) { case IEEE80211_M_STA: @@ -300,6 +303,7 @@ ieee80211_sysctl_vattach(vap); return 1; +#undef IEEE80211_C_OPMODE } int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505180007.j4I07Mkf062247>