wlanap.cgi: Fix listing channels

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-09-21 13:33:07 +02:00
parent b5caa92612
commit bbfa373e84

View File

@@ -61,7 +61,7 @@ my %cgiparams = ();
&Header::getcgihash(\%cgiparams);
# Find the selected interface
my $INTF = &Network::get_intf_by_address($cgiparams{'INTERFACE'});
my $INTF = &Network::get_intf_by_address($wlanapsettings{'INTERFACE'});
delete $wlanapsettings{'__CGI__'};
delete $wlanapsettings{'x'};
@@ -281,7 +281,7 @@ print <<END;
END
foreach my $channel (@channellist){
print "<option $selected{'CHANNEL'}{$channel}>";
print "<option value='$channel' $selected{'CHANNEL'}{$channel}>";
if ($channel eq 0) {
print "- $Lang::tr{'wlanap auto'} -";
} else {