From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4cp0HN65lJz2yfD for ; Fri, 17 Oct 2025 09:42:56 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4cp0HK3K66z2xJy for ; Fri, 17 Oct 2025 09:42:53 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4cp0HJ3TR2zTh; Fri, 17 Oct 2025 09:42:52 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1760694172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uvl1KJJForRO6rh2AR979vG0U9bSbuXDMS2/hbx6aNE=; b=gcipB6+CtdtwDumwWV8k/be1sTvq9WdKxgV5hdd/byRQCAzCJdBchiQjn4jyMT7ZsmqEus gViDIuYE5cJkeVCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1760694172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uvl1KJJForRO6rh2AR979vG0U9bSbuXDMS2/hbx6aNE=; b=jMnsAC8c6sQ0IUNrMgrK2INS4RzsJ6FwJ5VB9303M5TBdXIywkGAZghnRJ2LxPwezPdcuB h0ZcvrsoK5i7a58P4eSCiMPnAZz/fm/IoZFXgP+caeqrUDXyAGnxZYgj/zqcc+AS4n0j1Z mUxcqRVC77OYaZv+mp6v+yzXGk9kQDREc0FE9HKy1+58a5HQKTQMozXD5/5sPveNByn8pq oPnP1+nSkRDPJwa9NM/TFmat9pEiM7IfSC7sA3MKrVCwK5Len6G5Uw9+8Auvu4KxPhyHlu S6qETWZeSqc4kN3HfK/SnQH2MIxkRrFgVWUV4E1cZsEN6mkTWvcrvutz/FDXlg== From: ummeegge To: development@lists.ipfire.org Cc: ummeegge Subject: [PATCH] wlanap.cgi: Save IEEE80211W 'optional' value correctly Date: Fri, 17 Oct 2025 11:42:54 +0200 Message-ID: <20251017094258.632108-1-ummeegge@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Original ternary ignored 'optional' and forced 'off'. Use defined-or (//) to preserve all select values. Signed-off-by: ummeegge --- html/cgi-bin/wlanap.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi index 600ddc489..afdba59b3 100644 --- a/html/cgi-bin/wlanap.cgi +++ b/html/cgi-bin/wlanap.cgi @@ -118,7 +118,7 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}") { $wlanapsettings{'NOSCAN'} = ($cgiparams{'NOSCAN'} eq 'on') ? 'on' : 'off'; $wlanapsettings{'ENC'} = $cgiparams{'ENC'}; $wlanapsettings{'PWD'} = $cgiparams{'PWD'}; - $wlanapsettings{'IEEE80211W'} = ($cgiparams{'IEEE80211W'} eq 'on') ? 'on' : 'off'; + $wlanapsettings{'IEEE80211W'} = $cgiparams{'IEEE80211W'} // 'off'; $wlanapsettings{'TX_POWER'} = $cgiparams{'TX_POWER'}; if ($errormessage eq '') { -- 2.47.2