mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 19:40:34 +01:00
libnm: let nm_utils_security_valid() reject adhoc mode with SAE
This commit is contained in:
parent
3d20c9985d
commit
31aac7a9d8
1 changed files with 2 additions and 8 deletions
|
|
@ -1282,16 +1282,10 @@ nm_utils_security_valid (NMUtilsSecurityType type,
|
|||
case NMU_SEC_SAE:
|
||||
if (!(wifi_caps & NM_WIFI_DEVICE_CAP_RSN))
|
||||
return FALSE;
|
||||
if (adhoc)
|
||||
return FALSE;
|
||||
if (!have_ap)
|
||||
return TRUE;
|
||||
if (adhoc) {
|
||||
if (!(wifi_caps & NM_WIFI_DEVICE_CAP_IBSS_RSN))
|
||||
return FALSE;
|
||||
if ( (ap_rsn & NM_802_11_AP_SEC_PAIR_CCMP)
|
||||
&& (wifi_caps & NM_WIFI_DEVICE_CAP_CIPHER_CCMP))
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
if (ap_rsn & NM_802_11_AP_SEC_KEY_MGMT_SAE) {
|
||||
if ( (ap_rsn & NM_802_11_AP_SEC_PAIR_TKIP)
|
||||
&& (wifi_caps & NM_WIFI_DEVICE_CAP_CIPHER_TKIP))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue