mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 13:50:15 +01:00
supplicant: Disable WPA3 transition mode when PMF is set to disabled
According to WPA3_Specification_v3.0 section 2.3, when operating in WPA3-Personal transition mode an AP: - shall set MFPC to 1, MFPR to 0. Therefore, do not operate in WPA3-Personal transition mode when PMF is set to disabled. This also provides a way to be compatible with some devices that are not fully compatible with WPA3-Personal transition mode. Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com> https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1186
This commit is contained in:
parent
4c67970e4c
commit
b6eb237a27
1 changed files with 12 additions and 1 deletions
|
|
@ -877,10 +877,21 @@ nm_supplicant_config_add_setting_wireless_security(NMSupplicantConfig
|
|||
*
|
||||
* Those conditions are met when the interface has capabilities
|
||||
* SAE, PMF, BIP.
|
||||
*
|
||||
* According to WPA3_Specification_v3.0 section 2.3, when operating
|
||||
* in WPA3-Personal transition mode an AP:
|
||||
*
|
||||
* - shall set MFPC to 1, MFPR to 0.
|
||||
*
|
||||
* Therefore, do not operate in WPA3-Personal transition mode when PMF
|
||||
* is set to disabled. This also provides a way to be compatible with
|
||||
* some devices that are not fully compatible with WPA3-Personal
|
||||
* transition mode.
|
||||
*/
|
||||
if (_get_capability(priv, NM_SUPPL_CAP_TYPE_SAE)
|
||||
&& _get_capability(priv, NM_SUPPL_CAP_TYPE_PMF)
|
||||
&& _get_capability(priv, NM_SUPPL_CAP_TYPE_BIP)) {
|
||||
&& _get_capability(priv, NM_SUPPL_CAP_TYPE_BIP)
|
||||
&& (!is_ap || pmf != NM_SETTING_WIRELESS_SECURITY_PMF_DISABLE)) {
|
||||
g_string_append(key_mgmt_conf, " SAE");
|
||||
if (!is_ap && _get_capability(priv, NM_SUPPL_CAP_TYPE_FT))
|
||||
g_string_append(key_mgmt_conf, " FT-SAE");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue