[2/4] wlanap.cgi: Use the correct array to fetch the current interface

Message ID 20241017145416.25394-2-michael.tremer@ipfire.org
State New
Headers
Series [1/4] hostapd: Enable logging to syslog |

Commit Message

Michael Tremer Oct. 17, 2024, 2:54 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 html/cgi-bin/wlanap.cgi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Patch

diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi
index 83849d324..a5d4d8d80 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`;