OSDN Git Service

staging/wlan-ng: rearrange comments
authorDenis Pithon <denis.pithon@gmail.com>
Fri, 16 May 2014 22:14:52 +0000 (00:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 17:05:22 +0000 (02:05 +0900)
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>
drivers/staging/wlan-ng/p80211netdev.c

index 63edc83..21ca17e 100644 (file)
@@ -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;
                }