summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng
diff options
context:
space:
mode:
authorDenis Pithon <denis.pithon@gmail.com>2014-05-17 00:14:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-24 02:05:22 +0900
commit95c9668dda663b0d5fca3f4212c6f71157256daa (patch)
tree2cd56b88c16432155b4da051732c52cd05ba21cd /drivers/staging/wlan-ng
parent02b3b53a083f833650cccffe2655711d6d0ab64c (diff)
staging/wlan-ng: rearrange comments
Gathered together comments in front of multicast filtering block. Signed-off-by: Denis Pithon <denis.pithon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r--drivers/staging/wlan-ng/p80211netdev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 63edc83d23a..21ca17e7c46 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -260,12 +260,12 @@ static int p80211_convert_to_ether(wlandevice_t *wlandev, struct sk_buff *skb)
if (p80211_rx_typedrop(wlandev, hdr->fc))
return CONV_TO_ETHER_SKIPPED;
- /* perform mcast filtering */
+ /* perform mcast filtering: allow my local address through but reject
+ * anything else that isn't multicast
+ */
if (wlandev->netdev->flags & IFF_ALLMULTI) {
- /* allow my local address through */
if (!ether_addr_equal_unaligned(wlandev->netdev->dev_addr,
hdr->a1)) {
- /* but reject anything else that isn't multicast */
if (!is_multicast_ether_addr(hdr->a1))
return CONV_TO_ETHER_SKIPPED;
}