3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 18:59:22 +01:00

eap-peap: Relax the M bit requirement

Some of the PEAP server implementation brake the protocol
and don’t set the M flag for the first packet during the
fragmented transmission. To stay compatible with such
devices, we relax this requirement in iwd.
This commit is contained in:
Tim Kourt 2018-06-29 14:43:51 -07:00 committed by Denis Kenzior
parent d5dd1a4e90
commit 9976007dd8

View File

@ -589,7 +589,7 @@ static bool eap_peap_init_request_assembly(struct eap_state *eap,
uint8_t flags) {
struct eap_peap_state *peap = eap_get_data(eap);
if (peap->rx_pdu_buf || !(flags & PEAP_FLAG_M) || len < 4)
if (peap->rx_pdu_buf || len < 4)
return false;
peap->rx_pdu_buf_len = l_get_be32(pkt);