summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_crypto_none.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-06-10 16:11:24 +0000
committersam <sam@FreeBSD.org>2005-06-10 16:11:24 +0000
commit6ee6d8891675b656ba92d6c73aa98b03a975c2fe (patch)
tree0391865cf0d816fd8505a8fd066ed529a159383e /sys/net80211/ieee80211_crypto_none.c
parent53aa8b7547fb9b83ef5c1565f6c2a45b0cf8c9b1 (diff)
downloadFreeBSD-src-6ee6d8891675b656ba92d6c73aa98b03a975c2fe.zip
FreeBSD-src-6ee6d8891675b656ba92d6c73aa98b03a975c2fe.tar.gz
o fix wpa w/ wme: don't strip the QoS header on recv as tkip requires
it; instead pass the space occupied by the header down into the crypto modules (except in the demic case which needs it only when doing int in s/w) o while here fix defrag to strip the header from 2nd and later frames o teach decap code how to handle 4-address frames
Diffstat (limited to 'sys/net80211/ieee80211_crypto_none.c')
-rw-r--r--sys/net80211/ieee80211_crypto_none.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_crypto_none.c b/sys/net80211/ieee80211_crypto_none.c
index c8ce724..ce43134 100644
--- a/sys/net80211/ieee80211_crypto_none.c
+++ b/sys/net80211/ieee80211_crypto_none.c
@@ -52,7 +52,7 @@ static void *none_attach(struct ieee80211com *, struct ieee80211_key *);
static void none_detach(struct ieee80211_key *);
static int none_setkey(struct ieee80211_key *);
static int none_encap(struct ieee80211_key *, struct mbuf *, u_int8_t);
-static int none_decap(struct ieee80211_key *, struct mbuf *);
+static int none_decap(struct ieee80211_key *, struct mbuf *, int);
static int none_enmic(struct ieee80211_key *, struct mbuf *, int);
static int none_demic(struct ieee80211_key *, struct mbuf *, int);
@@ -110,7 +110,7 @@ none_encap(struct ieee80211_key *k, struct mbuf *m, u_int8_t keyid)
}
static int
-none_decap(struct ieee80211_key *k, struct mbuf *m)
+none_decap(struct ieee80211_key *k, struct mbuf *m, int hdrlen)
{
struct ieee80211com *ic = k->wk_private;
#ifdef IEEE80211_DEBUG
OpenPOWER on IntegriCloud