ath9k: Fix a check for multicast address for virtual wiphy
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 14 May 2009 18:28:46 +0000 (21:28 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:46:24 +0000 (14:46 -0400)
The broadcast bit is in the first, not the last octet..

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c

index b46badd21f738ff53d67e288c8298dbbe3171220..76abbbec9fd7ad1f3bebbe8340bf05c8c0df36b4 100644 (file)
@@ -637,7 +637,7 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush)
                }
 
                /* Send the frame to mac80211 */
-               if (hdr->addr1[5] & 0x01) {
+               if (is_multicast_ether_addr(hdr->addr1)) {
                        int i;
                        /*
                         * Deliver broadcast/multicast frames to all suitable