Used is_multicast_ether_addr() to perform the checking.

Signed-off-by: Denis Pithon <denis.pit...@gmail.com>
---
 drivers/staging/wlan-ng/p80211netdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
                }
        }
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to