mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-20 12:39:25 +01:00
eapol: Drop unneded check in verify_ptk_4_of_4
Step 4 is always sent without encrypted Key Data according to Section 11.6.6.5. In the case of WPA, Encrypted Key Data field is reserved, and should always be 0. Thus it is safe to drop the !is_wpa condition.
This commit is contained in:
parent
bb17f5df94
commit
2ba7867e9f
@ -367,7 +367,7 @@ bool eapol_verify_ptk_4_of_4(const struct eapol_key *ek, bool is_wpa)
|
||||
if (ek->secure != !is_wpa)
|
||||
return false;
|
||||
|
||||
if (ek->encrypted_key_data && !is_wpa)
|
||||
if (ek->encrypted_key_data)
|
||||
return false;
|
||||
|
||||
key_len = L_BE16_TO_CPU(ek->key_length);
|
||||
|
Loading…
Reference in New Issue
Block a user