mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From 8f55fad4bbc1e9f04b263a1dc2d3897de52c8b38 Mon Sep 17 00:00:00 2001
|
|
From: John Crispin <john@phrozen.org>
|
|
Date: Tue, 31 May 2022 08:09:20 +0200
|
|
Subject: [PATCH 15/15] hostapd: add psk2-radius support
|
|
|
|
Signed-off-by: John Crispin <john@phrozen.org>
|
|
---
|
|
package/network/services/hostapd/files/hostapd.sh | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
|
|
index df1aec0b42..d117a24975 100644
|
|
--- a/package/network/services/hostapd/files/hostapd.sh
|
|
+++ b/package/network/services/hostapd/files/hostapd.sh
|
|
@@ -704,7 +704,7 @@ hostapd_set_bss_options() {
|
|
set_default ieee80211w 2
|
|
set_default sae_require_mfp 1
|
|
;;
|
|
- psk-sae|eap-eap256)
|
|
+ psk-sae|psk2-radius|eap-eap256)
|
|
set_default ieee80211w 1
|
|
set_default sae_require_mfp 1
|
|
;;
|
|
@@ -767,6 +767,11 @@ hostapd_set_bss_options() {
|
|
append bss_conf "wep_default_key=$wep_keyidx" "$N"
|
|
[ -n "$wep_rekey" ] && append bss_conf "wep_rekey_period=$wep_rekey" "$N"
|
|
;;
|
|
+ psk2-radius)
|
|
+ append bss_conf "wpa_psk_radius=3" "$N"
|
|
+ append_radius_server
|
|
+ vlan_possible=1
|
|
+ ;;
|
|
esac
|
|
|
|
local auth_algs=$((($auth_mode_shared << 1) | $auth_mode_open))
|
|
--
|
|
2.25.1
|
|
|