aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_hwmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mesh_hwmp.c')
-rw-r--r--net/mac80211/mesh_hwmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
index 1c6f3d02aebf..f80a9e3da359 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -748,10 +748,10 @@ static void hwmp_rann_frame_process(struct ieee80211_sub_if_data *sdata,
748 flags = rann->rann_flags; 748 flags = rann->rann_flags;
749 root_is_gate = !!(flags & RANN_FLAG_IS_GATE); 749 root_is_gate = !!(flags & RANN_FLAG_IS_GATE);
750 orig_addr = rann->rann_addr; 750 orig_addr = rann->rann_addr;
751 orig_sn = rann->rann_seq; 751 orig_sn = le32_to_cpu(rann->rann_seq);
752 hopcount = rann->rann_hopcount; 752 hopcount = rann->rann_hopcount;
753 hopcount++; 753 hopcount++;
754 metric = rann->rann_metric; 754 metric = le32_to_cpu(rann->rann_metric);
755 755
756 /* Ignore our own RANNs */ 756 /* Ignore our own RANNs */
757 if (compare_ether_addr(orig_addr, sdata->vif.addr) == 0) 757 if (compare_ether_addr(orig_addr, sdata->vif.addr) == 0)