Date: Sun, 28 Jun 2009 16:53:35 +0000 (UTC) From: Sam Leffler <sam@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195141 - projects/mesh11s/sys/net80211 Message-ID: <200906281653.n5SGrZCo016754@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sam Date: Sun Jun 28 16:53:35 2009 New Revision: 195141 URL: http://svn.freebsd.org/changeset/base/195141 Log: o make struct static to avoid runtime initializer o mark another case needing similar fixup Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c ============================================================================== --- projects/mesh11s/sys/net80211/ieee80211_mesh.c Sun Jun 28 16:51:58 2009 (r195140) +++ projects/mesh11s/sys/net80211/ieee80211_mesh.c Sun Jun 28 16:53:35 2009 (r195141) @@ -1456,6 +1456,7 @@ ieee80211_add_meshconf(uint8_t *frm, str { uint8_t neighs = 0; struct ieee80211_mesh_state *ms = vap->iv_mesh; + /* XXX not static, expensive, do as static+dynamic */ struct ieee80211_meshconf_ie ie = { .conf_ie = IEEE80211_ELEMID_MESHCONF, .conf_len = sizeof(struct ieee80211_meshconf_ie) - 2, @@ -1493,7 +1494,7 @@ ieee80211_add_meshconf(uint8_t *frm, str uint8_t * ieee80211_add_meshpeerver(uint8_t *frm, struct ieee80211vap *vap) { - struct ieee80211_meshpeerver_ie ie = { + static struct ieee80211_meshpeerver_ie ie = { .peerver_ie = IEEE80211_ELEMID_MESHPEERVER, .peerver_len = 4, .peerver_proto = IEEE80211_MESHPEERVER_PEER,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906281653.n5SGrZCo016754>