aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-10-13 03:41:32 +0000
committerSam Leffler <sam@FreeBSD.org>2003-10-13 03:41:32 +0000
commit167ecdca8cf95e14128be2cf0e92b39f029fcfe6 (patch)
tree2018c9ea7a3d88aab5c49f902a799e8a5a49394e /sys
parent2075afba8de79c5f28df07581faad47d04c64e57 (diff)
downloadsrc-167ecdca8cf95e14128be2cf0e92b39f029fcfe6.tar.gz
src-167ecdca8cf95e14128be2cf0e92b39f029fcfe6.zip
Must reset the pointer to the 802.11 header after prepending
for WEP in case the prepend addes a new mbuf. This fixes WEP.
Notes
Notes: svn path=/head/; revision=121058
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ath/if_ath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 10a1b6d9c822..1369f933de54 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -1725,6 +1725,7 @@ ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf
return ENOMEM;
}
ivp = hdrbuf + hdrlen;
+ wh = mtod(m0, struct ieee80211_frame *);
/*
* XXX
* IV must not duplicate during the lifetime of the key.