mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
wlanap.cgi: Fix listing channels
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user