Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159073
b: refs/heads/master
c: 10c836d
h: refs/heads/master
i:
  159071: b27bc0f
v: v3
  • Loading branch information
Javier Cardona authored and John W. Linville committed Jul 24, 2009
1 parent 9e514e4 commit 129a1a7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4bde0f7d1dca0a7d886997eb8dee3fb47a6484e4
refs/heads/master: 10c836d7896e9d7b683a76f3cac3c289d8da72ef
18 changes: 18 additions & 0 deletions trunk/net/mac80211/mesh_pathtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,25 @@ static DEFINE_RWLOCK(pathtbl_resize_lock);
*/
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) {
hdr = (struct ieee80211_hdr *) skb->data;
memcpy(hdr->addr1, sta->sta.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 129a1a7

Please sign in to comment.