From 167ecdca8cf95e14128be2cf0e92b39f029fcfe6 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 13 Oct 2003 03:41:32 +0000 Subject: [PATCH] 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(+) diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 10a1b6d9c82..1369f933de5 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.