svn commit: r238942 - head/sys/net80211
Monthadar Al Jaberi
monthadar at FreeBSD.org
Tue Jul 31 08:05:41 UTC 2012
Author: monthadar
Date: Tue Jul 31 08:05:40 2012
New Revision: 238942
URL: http://svn.freebsd.org/changeset/base/238942
Log:
Fixed some debug output in hwmp_recv_prep.
Modified:
head/sys/net80211/ieee80211_hwmp.c
Modified: head/sys/net80211/ieee80211_hwmp.c
==============================================================================
--- head/sys/net80211/ieee80211_hwmp.c Tue Jul 31 08:04:49 2012 (r238941)
+++ head/sys/net80211/ieee80211_hwmp.c Tue Jul 31 08:05:40 2012 (r238942)
@@ -1289,7 +1289,7 @@ hwmp_recv_prep(struct ieee80211vap *vap,
IEEE80211_NOTE(vap, IEEE80211_MSG_HWMP, ni,
"discard PREP from %6D, new metric %u > %u",
prep->prep_targetaddr, ":",
- prep->prep_metric, rt->rt_metric);
+ metric, rt->rt_metric);
return;
}
}
@@ -1299,7 +1299,7 @@ hwmp_recv_prep(struct ieee80211vap *vap,
rt->rt_flags & IEEE80211_MESHRT_FLAGS_VALID ?
"prefer" : "update",
prep->prep_targetaddr, ":",
- rt->rt_nhops, prep->prep_hopcount,
+ rt->rt_nhops, prep->prep_hopcount + 1,
rt->rt_metric, metric);
hr->hr_seq = prep->prep_targetseq;
@@ -1371,7 +1371,7 @@ hwmp_recv_prep(struct ieee80211vap *vap,
rtext->rt_flags & IEEE80211_MESHRT_FLAGS_VALID ?
"prefer" : "update",
prep->prep_target_ext_addr, ":",
- rtext->rt_nhops, prep->prep_hopcount,
+ rtext->rt_nhops, prep->prep_hopcount + 1,
rtext->rt_metric, metric);
rtext->rt_flags = IEEE80211_MESHRT_FLAGS_PROXY |
More information about the svn-src-head
mailing list