summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-11-17 19:12:52 +0000
committerSam Leffler <sam@FreeBSD.org>2003-11-17 19:12:52 +0000
commitf6dbcc49109c5f41f00e64d36107c1bfd0a35e85 (patch)
tree71d5aa75d2220704851bca90891348bd041621de
parente585d188b025d59c5779034660b52afdf35874e4 (diff)
Notes
-rw-r--r--sys/dev/ath/if_ath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 2571ceb28b50..66b96a5c5b3d 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -1712,7 +1712,8 @@ ath_rx_proc(void *arg, int npending)
wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
memcpy(&whbuf, wh, sizeof(whbuf));
m_adj(m, IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN);
- memcpy(mtod(m, caddr_t), &whbuf, sizeof(whbuf));
+ wh = mtod(m, struct ieee80211_frame *);
+ memcpy(wh, &whbuf, sizeof(whbuf));
/*
* Also trim WEP ICV from the tail.
*/