From: Jouni Malinen Date: Thu, 14 May 2009 18:28:46 +0000 (+0300) Subject: ath9k: Fix a check for multicast address for virtual wiphy X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d8959fbfbad5f75c7df673aaf5112ba5e405ad34;p=linux.git ath9k: Fix a check for multicast address for virtual wiphy The broadcast bit is in the first, not the last octet.. Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index b46badd21f738..76abbbec9fd7a 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -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