Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327650
b: refs/heads/master
c: b22bd52
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Pedersen authored and Johannes Berg committed Aug 20, 2012
1 parent a41739d commit 2a79122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: aa7a00809cf6afe3cd6f5af2889110b47b798667
refs/heads/master: b22bd5221cfe80ee3d345d9deccfd29edf9bafb4
8 changes: 1 addition & 7 deletions trunk/net/mac80211/mesh_pathtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,23 +203,17 @@ void mesh_path_assign_nexthop(struct mesh_path *mpath, struct sta_info *sta)
{
struct sk_buff *skb;
struct ieee80211_hdr *hdr;
struct sk_buff_head tmpq;
unsigned long flags;

rcu_assign_pointer(mpath->next_hop, sta);

__skb_queue_head_init(&tmpq);

spin_lock_irqsave(&mpath->frame_queue.lock, flags);

while ((skb = __skb_dequeue(&mpath->frame_queue)) != NULL) {
skb_queue_walk(&mpath->frame_queue, skb) {
hdr = (struct ieee80211_hdr *) skb->data;
memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN);
memcpy(hdr->addr2, mpath->sdata->vif.addr, ETH_ALEN);
__skb_queue_tail(&tmpq, skb);
}

skb_queue_splice(&tmpq, &mpath->frame_queue);
spin_unlock_irqrestore(&mpath->frame_queue.lock, flags);
}

Expand Down

0 comments on commit 2a79122

Please sign in to comment.