Forráskód Böngészése

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 <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Jouni Malinen 16 éve
szülő
commit
d8959fbfba
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      drivers/net/wireless/ath/ath9k/recv.c

+ 1 - 1
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 */
 		/* Send the frame to mac80211 */
-		if (hdr->addr1[5] & 0x01) {
+		if (is_multicast_ether_addr(hdr->addr1)) {
 			int i;
 			int i;
 			/*
 			/*
 			 * Deliver broadcast/multicast frames to all suitable
 			 * Deliver broadcast/multicast frames to all suitable