From: Johannes Berg <johannes@sipsolutions.net>
To: Javier Cardona <javier@cozybit.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
Steve Derosier <steve@cozybit.com>,
devel@lists.open80211s.org, linux-wireless@vger.kernel.org
Subject: [PATCH/RFC] mac80211: use configured mesh TTL
Date: Wed, 01 Dec 2010 21:28:57 +0100 [thread overview]
Message-ID: <1291235337.4199.14.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <AANLkTimgfRvqp=-CDU=G8o-ZfD4fVbf3j-AdXCVtoM6c@mail.gmail.com>
From: Johannes Berg <johannes.berg@intel.com>
It seems the configured mesh TTL should be used,
not the default value.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
net/mac80211/mesh_pathtbl.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--- wireless-testing.orig/net/mac80211/mesh_pathtbl.c 2010-12-01 21:26:47.000000000 +0100
+++ wireless-testing/net/mac80211/mesh_pathtbl.c 2010-12-01 21:27:42.000000000 +0100
@@ -467,8 +467,8 @@ void mesh_plink_broken(struct sta_info *
mpath->flags &= ~MESH_PATH_ACTIVE;
++mpath->sn;
spin_unlock_bh(&mpath->state_lock);
- mesh_path_error_tx(MESH_TTL, mpath->dst,
- cpu_to_le32(mpath->sn),
+ mesh_path_error_tx(sdata->u.mesh.mshcfg.dot11MeshTTL,
+ mpath->dst, cpu_to_le32(mpath->sn),
cpu_to_le16(PERR_RCODE_DEST_UNREACH),
bcast, sdata);
} else
@@ -614,7 +614,8 @@ void mesh_path_discard_frame(struct sk_b
mpath = mesh_path_lookup(da, sdata);
if (mpath)
sn = ++mpath->sn;
- mesh_path_error_tx(MESH_TTL, skb->data, cpu_to_le32(sn),
+ mesh_path_error_tx(sdata->u.mesh.mshcfg.dot11MeshTTL, skb->data,
+ cpu_to_le32(sn),
cpu_to_le16(PERR_RCODE_NO_ROUTE), ra, sdata);
}
next prev parent reply other threads:[~2010-12-01 20:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-01 1:58 [PATCH] mac80211: Support beacon configuration via nl80211 for mesh interfaces Javier Cardona
2010-12-01 6:19 ` Johannes Berg
2010-12-01 18:45 ` Javier Cardona
2010-12-01 18:54 ` Johannes Berg
2010-12-01 19:35 ` Johannes Berg
2010-12-01 20:09 ` Javier Cardona
2010-12-01 20:19 ` Johannes Berg
2010-12-01 20:28 ` Johannes Berg [this message]
2010-12-01 20:32 ` [PATCH/RFC v2] mac80211: use configured mesh TTL Johannes Berg
2010-12-01 20:44 ` [PATCH/RFC] " Javier Cardona
2010-12-01 20:51 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291235337.4199.14.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=devel@lists.open80211s.org \
--cc=javier@cozybit.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=steve@cozybit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).