From 04745ccf4c58682033e85ca6acd947ebc25e8bc4 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 13 Oct 2003 03:41:32 +0000 Subject: Must reset the pointer to the 802.11 header after prepending for WEP in case the prepend addes a new mbuf. This fixes WEP. --- sys/dev/ath/if_ath.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/ath/if_ath.c') diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 10a1b6d..1369f93 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. -- cgit v1.1