mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
eapol: relax secure bit check on 2/4
Old wpa_supplicant versions do not set the secure bit on 2/4 during rekeys which causes IWD to reject the message and eventually time out. Modern versions do set it correctly but even Android 13 (Pixel 5a) still uses an ancient version of wpa_supplicant which does not set the bit. Relax this check and instead just print a warning but allow the message to be processed.
This commit is contained in:
parent
b373d1fa69
commit
0930d0dffc
@ -512,8 +512,7 @@ bool eapol_verify_ptk_2_of_4(const struct eapol_key *ek, bool ptk_complete)
|
|||||||
if (!ek->key_mic)
|
if (!ek->key_mic)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (ek->secure != ptk_complete)
|
L_WARN_ON(ek->secure != ptk_complete);
|
||||||
return false;
|
|
||||||
|
|
||||||
if (ek->encrypted_key_data)
|
if (ek->encrypted_key_data)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user