[PATCH] hostapd: allow PPSK to be enabled for sae, psk-sae

Shenghao Yang me at shenghaoyang.info
Sun Jul 23 02:26:41 PDT 2023


Using a RADIUS supplied password for SAE was supported since upstream
hostapd commit fcbdaae8a52e542705a651ee78b39b02935fda20.

Tested on 23.05-rc2 with hostapd-openssl.

Signed-off-by: Shenghao Yang <me at shenghaoyang.info>
---
  package/network/services/hostapd/files/hostapd.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index bf3625c92d..3606f06f58 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -670,7 +670,7 @@ hostapd_set_bss_options() {
  		;;
  		psk|sae|psk-sae)
  			json_get_vars key wpa_psk_file
-			if [ "$auth_type" = "psk" ] && [ "$ppsk" -ne 0 ] ; then
+			if [ "$ppsk" -ne 0 ] ; then
  				json_get_vars auth_secret auth_port
  				set_default auth_port 1812
  				json_for_each_item append_auth_server auth_server




More information about the openwrt-devel mailing list