mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-22 15:47:37 +00:00
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
This commit is contained in:
parent
e585d188b0
commit
f6dbcc4910
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122863
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user