diff options
author | sam <sam@FreeBSD.org> | 2003-11-17 19:12:52 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-17 19:12:52 +0000 |
commit | c99017ddccf4fb44a603dd4d8e3ed1c93b67fd70 (patch) | |
tree | 71d5aa75d2220704851bca90891348bd041621de /sys/dev/ath | |
parent | 846a1e2173568edc27e7f1d9f2fb50f10dbd4084 (diff) | |
download | FreeBSD-src-c99017ddccf4fb44a603dd4d8e3ed1c93b67fd70.zip FreeBSD-src-c99017ddccf4fb44a603dd4d8e3ed1c93b67fd70.tar.gz |
o fix WEP use in hostap mode; need to reset the pointer to the
802.11 packet header after stripping the WEP header on input
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/if_ath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 2571ceb..66b96a5 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. */ |