aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_hwmp.c
diff options
context:
space:
mode:
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>2012-04-10 00:31:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-12 15:10:31 -0400
commit35bcd591132c2d4d2a31843063c0f9e64e5be751 (patch)
tree7db3b5dc4c2eaccf68ba1e9d396b46f36f54900c /net/mac80211/mesh_hwmp.c
parent59a4cc2539076f868f2a3fcd7a3385a26928a27a (diff)
mac80211: fix the assignment of PREQ's MAC address for Proactive RANN
Record the RANN sender's address only for RANNs that meet the acceptance criteria (per sections 13.10.12.4.2). Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com> Reviewed-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_hwmp.c')
-rw-r--r--net/mac80211/mesh_hwmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
index a80da3784a25..503016f58631 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -800,10 +800,11 @@ static void hwmp_rann_frame_process(struct ieee80211_sub_if_data *sdata,
800 0, sdata); 800 0, sdata);
801 mpath->sn = orig_sn; 801 mpath->sn = orig_sn;
802 mpath->rann_metric = metric + metric_txsta; 802 mpath->rann_metric = metric + metric_txsta;
803 /* Recording RANNs sender address to send individually
804 * addressed PREQs destined for root mesh STA */
805 memcpy(mpath->rann_snd_addr, mgmt->sa, ETH_ALEN);
803 } 806 }
804 807
805 /* Using individually addressed PREQ for root node */
806 memcpy(mpath->rann_snd_addr, mgmt->sa, ETH_ALEN);
807 mpath->is_root = true; 808 mpath->is_root = true;
808 809
809 if (root_is_gate) 810 if (root_is_gate)