Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223647
b: refs/heads/master
c: b51aff0
h: refs/heads/master
i:
  223645: b87164e
  223643: 47d8f26
  223639: 35d05de
  223631: f81d59f
  223615: 9ad19a9
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Dec 22, 2010
1 parent 3bf88d2 commit 8baf895
Show file tree
Hide file tree
Showing 2 changed files with 5 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: b2b7ab22fa2e619c20917e825c0da7212ca2efc9
refs/heads/master: b51aff057c9d0ef6c529dc25fd9f775faf7b6c63
5 changes: 4 additions & 1 deletion trunk/net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1788,9 +1788,11 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)

fwd_skb = skb_copy(skb, GFP_ATOMIC);

if (!fwd_skb && net_ratelimit())
if (!fwd_skb && net_ratelimit()) {
printk(KERN_DEBUG "%s: failed to clone mesh frame\n",
sdata->name);
goto out;
}

fwd_hdr = (struct ieee80211_hdr *) fwd_skb->data;
memcpy(fwd_hdr->addr2, sdata->vif.addr, ETH_ALEN);
Expand Down Expand Up @@ -1828,6 +1830,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
}
}

out:
if (is_multicast_ether_addr(hdr->addr1) ||
sdata->dev->flags & IFF_PROMISC)
return RX_CONTINUE;
Expand Down

0 comments on commit 8baf895

Please sign in to comment.