From 644ccee40590ae2259c12c65a7ccaeaa7ffaa267 Mon Sep 17 00:00:00 2001 From: Monthadar Al Jaberi Date: Tue, 1 May 2012 16:02:31 +0000 Subject: PREP update * Added assertion in mesh_rt_update; * Fixed some prep propagation that where multicast, ALL PREPS ARE UNICAST; * Fixed PREP acceptance criteria; * Fixed some PREP debug messages; * HWMP intermediate reply (PREP) should only be sent if we have newer forwarding infomration (FI) about target; * Fixed PREP propagation condition and PREP w/ AE handling; * Ignore PREPs that have unknown originator. * Removed old code inside PREP that was for proactive path building to root mesh; Other errors include: * use seq number of target and not orig mesh STA; * Metric is what we have stored in our FI; * Error in amendment, Hop count is not 0 but equals FI hopcount for target; Approved by: adrian --- sys/net80211/ieee80211_mesh.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/net80211/ieee80211_mesh.c') diff --git a/sys/net80211/ieee80211_mesh.c b/sys/net80211/ieee80211_mesh.c index ff9abe172c28..c533491e67b3 100644 --- a/sys/net80211/ieee80211_mesh.c +++ b/sys/net80211/ieee80211_mesh.c @@ -239,6 +239,8 @@ ieee80211_mesh_rt_update(struct ieee80211_mesh_route *rt, int new_lifetime) int timesince, now; uint32_t lifetime = 0; + KASSERT(rt != NULL, ("route is NULL")); + now = ticks; RT_ENTRY_LOCK(rt); -- cgit v1.2.3