mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-30 06:39:46 +01:00
eap-peap: add warning for the missing M flag
This commit is contained in:
parent
63232dd7fe
commit
5f69aba32b
@ -592,6 +592,16 @@ static bool eap_peap_init_request_assembly(struct eap_state *eap,
|
|||||||
if (peap->rx_pdu_buf || len < 4)
|
if (peap->rx_pdu_buf || len < 4)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Some of the PEAP server implementations brake the protocol and do not
|
||||||
|
* set the M flag for the first packet during the fragmented
|
||||||
|
* transmission. To stay compatible with such devices, we have relaxed
|
||||||
|
* this requirement in iwd.
|
||||||
|
*/
|
||||||
|
if (!(flags & PEAP_FLAG_M))
|
||||||
|
l_warn("Server has failed to set the M flag in the first packet"
|
||||||
|
" of the fragmented transmission.");
|
||||||
|
|
||||||
peap->rx_pdu_buf_len = l_get_be32(pkt);
|
peap->rx_pdu_buf_len = l_get_be32(pkt);
|
||||||
|
|
||||||
if (!peap->rx_pdu_buf_len || peap->rx_pdu_buf_len > PEAP_PDU_MAX_LEN) {
|
if (!peap->rx_pdu_buf_len || peap->rx_pdu_buf_len > PEAP_PDU_MAX_LEN) {
|
||||||
|
Loading…
Reference in New Issue
Block a user