From patchwork Sun Jul 23 09:26:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenghao Yang X-Patchwork-Id: 1811392 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R7ygy32Ggz1yZd for ; Sun, 23 Jul 2023 19:30:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:List-Help: Reply-To:List-Archive:List-Unsubscribe:List-Subscribe:From:List-Post:List-Id: Message-ID:MIME-Version:To:Subject:Date:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=9Maca2bqD9ufegD/zQzsliwh8fxMzq1aYmG7cfV5DPE=; b=RLiKYpRJmWyuP1LPkb/SE1wY4c b9T42y/cNLR12tCUkCVY4NlvTYMCHPMdNfwwSfG6F8TA+YZCqOHqg2LAx+Z0RfEWd93tW3Gi9n/yI Y05hpwQ+F++xcKiAvubhseYQ43t7QtUbsnS7rX0LOdPILK+ZIYuIFctah+mtrIGG0oPd5zYp4HUch jR+dJMvJIvx/lMvpNPIPZbmjd1b7278FOk8DUNaZi+yDMlGV/LM2qA3/EHcCb8ak5le/GHTpm/Bvu Gqrsv0HSIlGH8TUpMg/iPxt9c9rI6GSox4xvDMZMCdPtMG4X78myCgQPhY8/jydYQRcLC5wmgqEEH 1JA6Gdgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qNVMY-000fva-22; Sun, 23 Jul 2023 09:26:50 +0000 Date: Sun, 23 Jul 2023 17:26:41 +0800 Subject: [PATCH] hostapd: allow PPSK to be enabled for sae, psk-sae To: openwrt-devel@lists.openwrt.org MIME-Version: 1.0 Message-ID: List-Id: OpenWrt Development List List-Post: X-Patchwork-Original-From: Shenghao Yang via openwrt-devel From: Shenghao Yang Precedence: list X-Mailman-Version: 2.1.34 X-BeenThere: openwrt-devel@lists.openwrt.org List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Shenghao Yang List-Help: Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. 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 --- 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