Fixed problem with not being able to decrypt/encrypt broadcast packets.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
This commit is contained in:
Hong Liu
2005-10-19 16:31:34 -05:00
committed by James Ketrenos
parent c4cfe567b9
commit 5b74eda78d
2 changed files with 4 additions and 2 deletions

View File

@@ -409,7 +409,8 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
return 1;
}
if (is_multicast_ether_addr(hdr->addr1) ? ieee->host_mc_decrypt :
if ((is_multicast_ether_addr(hdr->addr1) ||
is_broadcast_ether_addr(hdr->addr2)) ? ieee->host_mc_decrypt :
ieee->host_decrypt) {
int idx = 0;
if (skb->len >= hdrlen + 3)