33 lines
908 B
Diff
33 lines
908 B
Diff
From d449e4402e4981b8c5067aaab1db34cd73e40468 Mon Sep 17 00:00:00 2001
|
|
From: "P Rakshith (CAE 1 A)" <rakshith.p@infineon.com>
|
|
Date: Fri, 20 Oct 2023 08:34:04 +0000
|
|
Subject: [PATCH 58/60] non-upstream: Prevent invalid akm key mgmt when MFP
|
|
required is set
|
|
|
|
Upstream-Status: Inappropriate [DEY specific]
|
|
---
|
|
src/ap/ap_config.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
|
|
index 86b6e097c..a7fd85018 100644
|
|
--- a/src/ap/ap_config.c
|
|
+++ b/src/ap/ap_config.c
|
|
@@ -1432,6 +1432,13 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
|
|
}
|
|
#endif /* CONFIG_FILS */
|
|
|
|
+ if (full_config && (bss->ieee80211w == 2) &&
|
|
+ (bss->wpa_key_mgmt == (WPA_KEY_MGMT_PSK_SHA256 | WPA_KEY_MGMT_PSK))) {
|
|
+ wpa_printf(MSG_ERROR,
|
|
+ "Cannot set ieee80211w=2 along with with the selected wpa_key_mgmt");
|
|
+ return -1;
|
|
+ }
|
|
+
|
|
return 0;
|
|
}
|
|
|
|
--
|
|
2.17.1
|
|
|