staging/wlan-ng: multicast address checking
authorDenis Pithon <denis.pithon@gmail.com>
Fri, 16 May 2014 22:14:51 +0000 (00:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 17:05:22 +0000 (02:05 +0900)
Used is_multicast_ether_addr() to perform the checking.

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 13fe068ce8f4014c748c481150b1c185b9bf5b7f..63edc83d23a51367069bc6d791db8316365ab124 100644 (file)
@@ -266,7 +266,7 @@ static int p80211_convert_to_ether(wlandevice_t *wlandev, struct sk_buff *skb)
                if (!ether_addr_equal_unaligned(wlandev->netdev->dev_addr,
                                                hdr->a1)) {
                        /* but reject anything else that isn't multicast */
-                       if (!(hdr->a1[0] & 0x01))
+                       if (!is_multicast_ether_addr(hdr->a1))
                                return CONV_TO_ETHER_SKIPPED;
                }
        }