Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2013 21:28:26 +0000 (UTC)
From:      Monthadar Al Jaberi <monthadar@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246514 - head/sys/net80211
Message-ID:  <201302072128.r17LSQY1012104@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: monthadar
Date: Thu Feb  7 21:28:25 2013
New Revision: 246514
URL: http://svnweb.freebsd.org/changeset/base/246514

Log:
  Mesh HWMP: don't send an intermediate PREP for proxy entries.
  
  * The standard is unclear about what should happen in case a mesh STA (not
    marked as a mesh gate) recevies a PREQ for a destination that is marked
    as proxy. Solution for now is not to do intermediate reply at all, and
    let the PREQ reach the mesh gate;
  
  Approved by:	adrian (mentor)

Modified:
  head/sys/net80211/ieee80211_hwmp.c

Modified: head/sys/net80211/ieee80211_hwmp.c
==============================================================================
--- head/sys/net80211/ieee80211_hwmp.c	Thu Feb  7 21:27:40 2013	(r246513)
+++ head/sys/net80211/ieee80211_hwmp.c	Thu Feb  7 21:28:25 2013	(r246514)
@@ -1133,9 +1133,11 @@ hwmp_recv_preq(struct ieee80211vap *vap,
 
 		/*
 		 * We have a valid route to this node.
+		 * NB: if target is proxy dont reply.
 		 */
 		if (rttarg != NULL &&
-		    (rttarg->rt_flags & IEEE80211_MESHRT_FLAGS_VALID)) {
+		    rttarg->rt_flags & IEEE80211_MESHRT_FLAGS_VALID &&
+		    !(rttarg->rt_flags & IEEE80211_MESHRT_FLAGS_PROXY)) {
 			/*
 			 * Check if we can send an intermediate Path Reply,
 			 * i.e., Target Only bit is not set and target is not



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302072128.r17LSQY1012104>