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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
index 70ac7d180077..9b59658e8650 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -422,7 +422,7 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata,
422 new_metric = MAX_METRIC; 422 new_metric = MAX_METRIC;
423 exp_time = TU_TO_EXP_TIME(orig_lifetime); 423 exp_time = TU_TO_EXP_TIME(orig_lifetime);
424 424
425 if (compare_ether_addr(orig_addr, sdata->vif.addr) == 0) { 425 if (ether_addr_equal(orig_addr, sdata->vif.addr)) {
426 /* This MP is the originator, we are not interested in this 426 /* This MP is the originator, we are not interested in this
427 * frame, except for updating transmitter's path info. 427 * frame, except for updating transmitter's path info.
428 */ 428 */
@@ -472,7 +472,7 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata,
472 472
473 /* Update and check transmitter routing info */ 473 /* Update and check transmitter routing info */
474 ta = mgmt->sa; 474 ta = mgmt->sa;
475 if (compare_ether_addr(orig_addr, ta) == 0) 475 if (ether_addr_equal(orig_addr, ta))
476 fresh_info = false; 476 fresh_info = false;
477 else { 477 else {
478 fresh_info = true; 478 fresh_info = true;
@@ -533,7 +533,7 @@ static void hwmp_preq_frame_process(struct ieee80211_sub_if_data *sdata,
533 533
534 mhwmp_dbg("received PREQ from %pM", orig_addr); 534 mhwmp_dbg("received PREQ from %pM", orig_addr);
535 535
536 if (compare_ether_addr(target_addr, sdata->vif.addr) == 0) { 536 if (ether_addr_equal(target_addr, sdata->vif.addr)) {
537 mhwmp_dbg("PREQ is for us"); 537 mhwmp_dbg("PREQ is for us");
538 forward = false; 538 forward = false;
539 reply = true; 539 reply = true;
@@ -634,7 +634,7 @@ static void hwmp_prep_frame_process(struct ieee80211_sub_if_data *sdata,
634 mhwmp_dbg("received PREP from %pM", PREP_IE_ORIG_ADDR(prep_elem)); 634 mhwmp_dbg("received PREP from %pM", PREP_IE_ORIG_ADDR(prep_elem));
635 635
636 orig_addr = PREP_IE_ORIG_ADDR(prep_elem); 636 orig_addr = PREP_IE_ORIG_ADDR(prep_elem);
637 if (compare_ether_addr(orig_addr, sdata->vif.addr) == 0) 637 if (ether_addr_equal(orig_addr, sdata->vif.addr))
638 /* destination, no forwarding required */ 638 /* destination, no forwarding required */
639 return; 639 return;
640 640
@@ -712,7 +712,7 @@ static void hwmp_perr_frame_process(struct ieee80211_sub_if_data *sdata,
712 spin_lock_bh(&mpath->state_lock); 712 spin_lock_bh(&mpath->state_lock);
713 sta = next_hop_deref_protected(mpath); 713 sta = next_hop_deref_protected(mpath);
714 if (mpath->flags & MESH_PATH_ACTIVE && 714 if (mpath->flags & MESH_PATH_ACTIVE &&
715 compare_ether_addr(ta, sta->sta.addr) == 0 && 715 ether_addr_equal(ta, sta->sta.addr) &&
716 (!(mpath->flags & MESH_PATH_SN_VALID) || 716 (!(mpath->flags & MESH_PATH_SN_VALID) ||
717 SN_GT(target_sn, mpath->sn))) { 717 SN_GT(target_sn, mpath->sn))) {
718 mpath->flags &= ~MESH_PATH_ACTIVE; 718 mpath->flags &= ~MESH_PATH_ACTIVE;
@@ -759,7 +759,7 @@ static void hwmp_rann_frame_process(struct ieee80211_sub_if_data *sdata,
759 metric = le32_to_cpu(rann->rann_metric); 759 metric = le32_to_cpu(rann->rann_metric);
760 760
761 /* Ignore our own RANNs */ 761 /* Ignore our own RANNs */
762 if (compare_ether_addr(orig_addr, sdata->vif.addr) == 0) 762 if (ether_addr_equal(orig_addr, sdata->vif.addr))
763 return; 763 return;
764 764
765 mhwmp_dbg("received RANN from %pM via neighbour %pM (is_gate=%d)", 765 mhwmp_dbg("received RANN from %pM via neighbour %pM (is_gate=%d)",
@@ -1102,7 +1102,7 @@ int mesh_nexthop_lookup(struct sk_buff *skb,
1102 if (time_after(jiffies, 1102 if (time_after(jiffies,
1103 mpath->exp_time - 1103 mpath->exp_time -
1104 msecs_to_jiffies(sdata->u.mesh.mshcfg.path_refresh_time)) && 1104 msecs_to_jiffies(sdata->u.mesh.mshcfg.path_refresh_time)) &&
1105 !compare_ether_addr(sdata->vif.addr, hdr->addr4) && 1105 ether_addr_equal(sdata->vif.addr, hdr->addr4) &&
1106 !(mpath->flags & MESH_PATH_RESOLVING) && 1106 !(mpath->flags & MESH_PATH_RESOLVING) &&
1107 !(mpath->flags & MESH_PATH_FIXED)) 1107 !(mpath->flags & MESH_PATH_FIXED))
1108 mesh_queue_preq(mpath, PREQ_Q_F_START | PREQ_Q_F_REFRESH); 1108 mesh_queue_preq(mpath, PREQ_Q_F_START | PREQ_Q_F_REFRESH);