Date: Tue, 30 Jun 2009 22:26:26 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195214 - projects/mesh11s/sys/net80211 Message-ID: <200906302226.n5UMQQRM093860@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Tue Jun 30 22:26:26 2009 New Revision: 195214 URL: http://svn.freebsd.org/changeset/base/195214 Log: Avoid side effects. Pointed out by: sam Sponsored by: The FreeBSD Foundation Modified: projects/mesh11s/sys/net80211/ieee80211_output.c Modified: projects/mesh11s/sys/net80211/ieee80211_output.c ============================================================================== --- projects/mesh11s/sys/net80211/ieee80211_output.c Tue Jun 30 22:09:47 2009 (r195213) +++ projects/mesh11s/sys/net80211/ieee80211_output.c Tue Jun 30 22:26:26 2009 (r195214) @@ -1497,7 +1497,8 @@ ieee80211_encap(struct ieee80211vap *vap break; } mc->mc_ttl = ms->ms_ttl; - LE_WRITE_4(mc->mc_seq, ++ms->ms_seq); + ms->ms_seq++; + LE_WRITE_4(mc->mc_seq, ms->ms_seq); break; case IEEE80211_M_MONITOR: case IEEE80211_M_WDS: /* NB: is4addr should always be true */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906302226.n5UMQQRM093860>