3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-20 19:02:48 +01:00

hwsim: Don't require full mpdu_mgmt_header in frames

Don't require the full length of a Management MPDU as a condition to
forward the frame, only require data up to the three addresses we need
to know where to forward the frame.

This check was failing with some frames during a deauthentication.  We
could possibly forward shorter frames too if needed (send to all
possible recipients.)
This commit is contained in:
Andrew Zaborowski 2017-03-14 00:51:21 +01:00 committed by Denis Kenzior
parent 0e2a7c479f
commit 2411d24c87

View File

@ -1258,8 +1258,8 @@ static void unicast_handler(struct l_genl_msg *msg, void *user_data)
if (len > IEEE80211_MAX_DATA_LEN)
break;
if (len < sizeof(struct mpdu_fc) +
sizeof(struct mpdu_mgmt_header)) {
/* Duration + Address1 + Address2 + Address3 + SeqCtl */
if (len < sizeof(struct mpdu_fc) + 22) {
l_error("Frame payload too short for header");
break;
}