From: ummeegge <ummeegge@ipfire.org>
To: development@lists.ipfire.org
Cc: ummeegge <ummeegge@ipfire.org>
Subject: [PATCH] wlanap.cgi: Save IEEE80211W 'optional' value correctly
Date: Fri, 17 Oct 2025 11:42:54 +0200 [thread overview]
Message-ID: <20251017094258.632108-1-ummeegge@ipfire.org> (raw)
Original ternary ignored 'optional' and forced 'off'.
Use defined-or (//) to preserve all select values.
Signed-off-by: ummeegge <ummeegge@ipfire.org>
---
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
next reply other threads:[~2025-10-17 9:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-17 9:42 ummeegge [this message]
2025-10-22 10:17 ` Michael Tremer
2025-10-22 18:02 ` ummeegge
2025-10-23 16:49 ` Michael Tremer
2025-10-22 15:34 ` [PATCH v2] " ummeegge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251017094258.632108-1-ummeegge@ipfire.org \
--to=ummeegge@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox