aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-12-27 01:37:05 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-27 01:37:05 -0500
commit17f7f4d9fcce8f1b75b5f735569309dee7665968 (patch)
tree14d7e49ca0053a0fcab3c33b5023bf3f90c5c08a /net/mac80211
parent041110a439e21cd40709ead4ffbfa8034619ad77 (diff)
parentd7c1255a3a21e98bdc64df8ccf005a174d7e6289 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: net/ipv4/fib_frontend.c
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/Kconfig2
-rw-r--r--net/mac80211/rx.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
index 798d9b9462e2..9109262abd24 100644
--- a/net/mac80211/Kconfig
+++ b/net/mac80211/Kconfig
@@ -93,7 +93,7 @@ config MAC80211_MESH
93config MAC80211_LEDS 93config MAC80211_LEDS
94 bool "Enable LED triggers" 94 bool "Enable LED triggers"
95 depends on MAC80211 95 depends on MAC80211
96 select NEW_LEDS 96 depends on LEDS_CLASS
97 select LEDS_TRIGGERS 97 select LEDS_TRIGGERS
98 ---help--- 98 ---help---
99 This option enables a few LED triggers for different 99 This option enables a few LED triggers for different
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 01a3f2630eaf..5e9d3bc6a2d9 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1831,9 +1831,11 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
1831 1831
1832 fwd_skb = skb_copy(skb, GFP_ATOMIC); 1832 fwd_skb = skb_copy(skb, GFP_ATOMIC);
1833 1833
1834 if (!fwd_skb && net_ratelimit()) 1834 if (!fwd_skb && net_ratelimit()) {
1835 printk(KERN_DEBUG "%s: failed to clone mesh frame\n", 1835 printk(KERN_DEBUG "%s: failed to clone mesh frame\n",
1836 sdata->name); 1836 sdata->name);
1837 goto out;
1838 }
1837 1839
1838 fwd_hdr = (struct ieee80211_hdr *) fwd_skb->data; 1840 fwd_hdr = (struct ieee80211_hdr *) fwd_skb->data;
1839 memcpy(fwd_hdr->addr2, sdata->vif.addr, ETH_ALEN); 1841 memcpy(fwd_hdr->addr2, sdata->vif.addr, ETH_ALEN);
@@ -1871,6 +1873,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
1871 } 1873 }
1872 } 1874 }
1873 1875
1876 out:
1874 if (is_multicast_ether_addr(hdr->addr1) || 1877 if (is_multicast_ether_addr(hdr->addr1) ||
1875 sdata->dev->flags & IFF_PROMISC) 1878 sdata->dev->flags & IFF_PROMISC)
1876 return RX_CONTINUE; 1879 return RX_CONTINUE;