diff options
Diffstat (limited to 'net/mac80211/mesh_hwmp.c')
-rw-r--r-- | net/mac80211/mesh_hwmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index ce3db2735d7c..1b13135d7f35 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c | |||
@@ -1029,9 +1029,10 @@ int mesh_nexthop_lookup(struct sk_buff *skb, | |||
1029 | PREQ_Q_F_START | PREQ_Q_F_REFRESH); | 1029 | PREQ_Q_F_START | PREQ_Q_F_REFRESH); |
1030 | } | 1030 | } |
1031 | next_hop = rcu_dereference(mpath->next_hop); | 1031 | next_hop = rcu_dereference(mpath->next_hop); |
1032 | if (next_hop) | 1032 | if (next_hop) { |
1033 | memcpy(hdr->addr1, next_hop->sta.addr, ETH_ALEN); | 1033 | memcpy(hdr->addr1, next_hop->sta.addr, ETH_ALEN); |
1034 | else | 1034 | memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); |
1035 | } else | ||
1035 | err = -ENOENT; | 1036 | err = -ENOENT; |
1036 | } else { | 1037 | } else { |
1037 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | 1038 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); |