summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_crypto.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-07-22 17:42:08 +0000
committersam <sam@FreeBSD.org>2005-07-22 17:42:08 +0000
commitdd6e7b2fa5ce5c4d9d47db9ae9c0250f871ecbde (patch)
tree5a35a869a90c243bfead55bdf300c2357401a142 /sys/net80211/ieee80211_crypto.c
parent7c3e01b45a80cdbc30a8a0fa1457ba098b3d54a9 (diff)
downloadFreeBSD-src-dd6e7b2fa5ce5c4d9d47db9ae9c0250f871ecbde.zip
FreeBSD-src-dd6e7b2fa5ce5c4d9d47db9ae9c0250f871ecbde.tar.gz
don't include 802.3 header in min frame length calculation as it may
not be present for a frag; fixes problem with small (fragmented) frames being dropped Obtained from: Atheros MFC after: 3 days
Diffstat (limited to 'sys/net80211/ieee80211_crypto.c')
-rw-r--r--sys/net80211/ieee80211_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_crypto.c b/sys/net80211/ieee80211_crypto.c
index c20a81f..1771ea1 100644
--- a/sys/net80211/ieee80211_crypto.c
+++ b/sys/net80211/ieee80211_crypto.c
@@ -543,7 +543,7 @@ ieee80211_crypto_decap(struct ieee80211com *ic,
{
#define IEEE80211_WEP_HDRLEN (IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN)
#define IEEE80211_WEP_MINLEN \
- (sizeof(struct ieee80211_frame) + ETHER_HDR_LEN + \
+ (sizeof(struct ieee80211_frame) + \
IEEE80211_WEP_HDRLEN + IEEE80211_WEP_CRCLEN)
struct ieee80211_key *k;
struct ieee80211_frame *wh;
OpenPOWER on IntegriCloud