3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-27 02:32:52 +01:00

station: use IE_AKM_IS_FT when possible

Update a check to use IE_AKM_IS_FT as the condition is identical
to the macro.
This commit is contained in:
James Prestwood 2021-05-12 16:01:48 -07:00 committed by Denis Kenzior
parent 7fc0a8fc0f
commit df04877a67

View File

@ -865,11 +865,7 @@ build_ie:
if (!handshake_state_set_supplicant_ie(hs, rsne_buf))
goto not_supported;
if (info.akm_suites & (IE_RSN_AKM_SUITE_FT_OVER_8021X |
IE_RSN_AKM_SUITE_FT_USING_PSK |
IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256 |
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256 |
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384))
if (IE_AKM_IS_FT(info.akm_suites))
add_mde = true;
open_network: