Skip to content

Commit

Permalink
ath9k: Fix a check for multicast address for virtual wiphy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jouni Malinen authored and John W. Linville committed May 20, 2009
1 parent 9277818 commit d8959fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8959fb

Please sign in to comment.