mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-19 11:09:25 +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:
parent
0e2a7c479f
commit
2411d24c87
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user