From: Michael Tremer Date: Thu, 17 Oct 2024 14:54:14 +0000 (+0000) Subject: wlanap.cgi: Use the correct array to fetch the current interface X-Git-Tag: v2.29-core190~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3638d37c0d5e2c1ffa4fd4e884c11b9da3676e31;p=ipfire-2.x.git wlanap.cgi: Use the correct array to fetch the current interface Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi index 83849d3243..a5d4d8d808 100644 --- a/html/cgi-bin/wlanap.cgi +++ b/html/cgi-bin/wlanap.cgi @@ -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'}; @@ -376,7 +376,6 @@ END &Header::closebox(); if ($INTF) { - &Header::opensection(); my @status = `iw dev $INTF info`;