diff options
author | Denis Pithon <denis.pithon@gmail.com> | 2014-05-17 00:14:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-24 02:05:22 +0900 |
commit | 02b3b53a083f833650cccffe2655711d6d0ab64c (patch) | |
tree | 9fe76fb96851e834f854b6cc38ffa969c5d276b9 | |
parent | 9b3ac7a892c12a6ac1a4b7f435be91c22b65e067 (diff) | |
download | op-kernel-dev-02b3b53a083f833650cccffe2655711d6d0ab64c.zip op-kernel-dev-02b3b53a083f833650cccffe2655711d6d0ab64c.tar.gz |
staging/wlan-ng: multicast address checking
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>
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index 13fe068..63edc83 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; } } |