From: Denis Pithon Date: Fri, 16 May 2014 22:14:51 +0000 (+0200) Subject: staging/wlan-ng: multicast address checking X-Git-Tag: firefly_0821_release~176^2~3465^2~39^2~362 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=02b3b53a083f833650cccffe2655711d6d0ab64c;p=firefly-linux-kernel-4.4.55.git staging/wlan-ng: multicast address checking Used is_multicast_ether_addr() to perform the checking. 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 13fe068ce8f4..63edc83d23a5 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c @@ -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; } }