Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360797
b: refs/heads/master
c: 163df6c
h: refs/heads/master
i:
  360795: 95dd103
v: v3
  • Loading branch information
Chun-Yeow Yeoh authored and Johannes Berg committed Feb 25, 2013
1 parent 2b0e79e commit d6f974e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 162589f7b162b916ac377753c086e3ba76a9f33d
refs/heads/master: 163df6cf292a1024277f500038fc0ed493635673
17 changes: 16 additions & 1 deletion trunk/net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1844,9 +1844,24 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
}

if (!is_multicast_ether_addr(skb->data)) {
struct sta_info *next_hop;
bool mpp_lookup = true;

mpath = mesh_path_lookup(sdata, skb->data);
if (!mpath)
if (mpath) {
mpp_lookup = false;
next_hop = rcu_dereference(mpath->next_hop);
if (!next_hop ||
!(mpath->flags & (MESH_PATH_ACTIVE |
MESH_PATH_RESOLVING)))
mpp_lookup = true;
}

if (mpp_lookup)
mppath = mpp_path_lookup(sdata, skb->data);

if (mppath && mpath)
mesh_path_del(mpath->sdata, mpath->dst);
}

/*
Expand Down

0 comments on commit d6f974e

Please sign in to comment.