Skip to content
Snippets Groups Projects

d/patches: wifi: Disable FT and WPA-PSK-SHA256 in AP mode

1 unresolved thread
4 files
+ 188
0
Compare changes
  • Side-by-side
  • Inline
Files
4
From: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Date: Sat, 21 Jan 2023 02:26:19 +0100
Subject: wifi: Disable WPA-PSK-SHA256 in AP mode
brcmfmac has troubles with it.
---
src/core/supplicant/nm-supplicant-config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/supplicant/nm-supplicant-config.c b/src/core/supplicant/nm-supplicant-config.c
index 2a21d69..6b78ab6 100644
--- a/src/core/supplicant/nm-supplicant-config.c
+++ b/src/core/supplicant/nm-supplicant-config.c
@@ -846,7 +846,7 @@ nm_supplicant_config_add_setting_wireless_security(NMSupplicantConfig *
key_mgmt = nm_setting_wireless_security_get_key_mgmt(setting);
key_mgmt_conf = g_string_new(key_mgmt);
if (nm_streq(key_mgmt, "wpa-psk")) {
- if (_get_capability(priv, NM_SUPPL_CAP_TYPE_PMF))
+ if (!is_ap && _get_capability(priv, NM_SUPPL_CAP_TYPE_PMF))
g_string_append(key_mgmt_conf, " wpa-psk-sha256");
if (!is_ap && _get_capability(priv, NM_SUPPL_CAP_TYPE_FT))
g_string_append(key_mgmt_conf, " ft-psk");
Loading