Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:38309 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256Ab2DIHrH (ORCPT ); Mon, 9 Apr 2012 03:47:07 -0400 Received: by pbcun15 with SMTP id un15so4747005pbc.19 for ; Mon, 09 Apr 2012 00:47:07 -0700 (PDT) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, javier@cozybit.com, linville@tuxdriver.com, devel@lists.open80211s.org, Chun-Yeow Yeoh Subject: [PATCH] mac80211: fix the assignment of PREQ's MAC address for Proactive RANN Date: Mon, 9 Apr 2012 15:46:57 +0800 Message-Id: <1333957617-13732-1-git-send-email-yeohchunyeow@gmail.com> (sfid-20120409_094712_665655_87301AB8) Sender: linux-wireless-owner@vger.kernel.org List-ID: The individually addressed PREQ to the root mesh STA should be sent to the neighbor peer mesh STA which the RANN generated by that neighbor peer mesh STA is accepted. Signed-off-by: Chun-Yeow Yeoh --- net/mac80211/mesh_hwmp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index 1c6f3d0..5b338c0 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c @@ -788,10 +788,10 @@ static void hwmp_rann_frame_process(struct ieee80211_sub_if_data *sdata, cpu_to_le32(metric + mpath->metric), 0, sdata); mpath->sn = orig_sn; + /* Using individually addressed PREQ for root node */ + memcpy(mpath->rann_snd_addr, mgmt->sa, ETH_ALEN); } - /* Using individually addressed PREQ for root node */ - memcpy(mpath->rann_snd_addr, mgmt->sa, ETH_ALEN); mpath->is_root = true; if (root_is_gate) -- 1.7.0.4