diff options
author | Hong Liu <hong.liu@intel.com> | 2005-10-19 23:31:34 +0200 |
---|---|---|
committer | James Ketrenos <jketreno@linux.intel.com> | 2005-10-19 23:49:03 +0200 |
commit | 5b74eda78db410b979b7d450221c971fdebf5d29 (patch) | |
tree | 4dd2ee158b10bf11e4f34ba00a28e09cdacbf272 /net/ieee80211/ieee80211_rx.c | |
parent | [PATCH] e1000 build fix (diff) | |
download | linux-5b74eda78db410b979b7d450221c971fdebf5d29.tar.xz linux-5b74eda78db410b979b7d450221c971fdebf5d29.zip |
Fixed problem with not being able to decrypt/encrypt broadcast packets.
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Diffstat (limited to 'net/ieee80211/ieee80211_rx.c')
-rw-r--r-- | net/ieee80211/ieee80211_rx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c index 6b005cb0caa0..ce694cf5c160 100644 --- a/net/ieee80211/ieee80211_rx.c +++ b/net/ieee80211/ieee80211_rx.c @@ -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) |