From: Denis Pithon Date: Fri, 16 May 2014 22:14:52 +0000 (+0200) Subject: staging/wlan-ng: rearrange comments X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=95c9668dda663b0d5fca3f4212c6f71157256daa;p=linux-beck.git staging/wlan-ng: rearrange comments Gathered together comments in front of multicast filtering block. Signed-off-by: Denis Pithon Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index 63edc83d23a5..21ca17e7c461 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; }