diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2009-10-19 23:11:43 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2009-10-19 23:11:43 +0000 |
commit | 215db8e5d01d92dd9df98f9db430e2e94a740392 (patch) | |
tree | 081f520fdd5c66829b1983e7947bc6deddd2d42d /sys/net80211/ieee80211_hwmp.c | |
parent | 30deee5b8dd5897e19ba516be35dcc4c864dc748 (diff) | |
download | FreeBSD-src-215db8e5d01d92dd9df98f9db430e2e94a740392.zip FreeBSD-src-215db8e5d01d92dd9df98f9db430e2e94a740392.tar.gz |
Fix a bug in composing PERR frames introduced by latest draft update.
MFC after: 3 days
Diffstat (limited to 'sys/net80211/ieee80211_hwmp.c')
-rw-r--r-- | sys/net80211/ieee80211_hwmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_hwmp.c b/sys/net80211/ieee80211_hwmp.c index 3481c3e..32ca163 100644 --- a/sys/net80211/ieee80211_hwmp.c +++ b/sys/net80211/ieee80211_hwmp.c @@ -548,7 +548,7 @@ hwmp_add_meshperr(uint8_t *frm, const struct ieee80211_meshperr_ie *perr) *frm++ = perr->perr_ttl; *frm++ = perr->perr_ndests; for (i = 0; i < perr->perr_ndests; i++) { - *frm += perr->perr_dests[i].dest_flags; + *frm++ = perr->perr_dests[i].dest_flags; IEEE80211_ADDR_COPY(frm, perr->perr_dests[i].dest_addr); frm += 6; ADDWORD(frm, perr->perr_dests[i].dest_seq); @@ -1114,6 +1114,7 @@ hwmp_peerdown(struct ieee80211_node *ni) "%s", "delete route entry"); perr.perr_ttl = ms->ms_ttl; perr.perr_ndests = 1; + PERR_DFLAGS(0) = 0; if (hr->hr_seq == 0) PERR_DFLAGS(0) |= IEEE80211_MESHPERR_DFLAGS_USN; PERR_DFLAGS(0) |= IEEE80211_MESHPERR_DFLAGS_RC; |