Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
&Header::closebox();
-&Header::opensection();
+if ($INTF) {
-my @status = `iw dev $INTF info`;
+ &Header::opensection();
-if (@status) {
- print <<END;
- <h6>$Lang::tr{'wlanap wlan status'}</h6>
+ my @status = `iw dev $INTF info`;
+
+ if (@status) {
+ print <<END;
+ <h6>$Lang::tr{'wlanap wlan status'}</h6>
- <pre>@status</pre>
+ <pre>@status</pre>
END
-}
+ }
-my @status = `iw dev $INTF station dump`;
+ @status = `iw dev $INTF station dump`;
-if (@status) {
- print <<END;
- <h6>$Lang::tr{'wlanap clients'}</h6>
+ if (@status) {
+ print <<END;
+ <h6>$Lang::tr{'wlanap clients'}</h6>
- <pre>@status</pre>
+ <pre>@status</pre>
END
+ }
+
+ &Header::closesection();
}
-&Header::closesection();
&Header::closebigbox();
&Header::closepage();