diff options
Diffstat (limited to 'usr/local/www/status_wireless.php')
-rwxr-xr-x | usr/local/www/status_wireless.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index 1cf6eec..1813a01 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -85,7 +85,7 @@ display_top_tabs($tab_array); <table class="tabcont" colspan="3" cellpadding="3" width="100%"> <?php -if ($mode == 'bss') { + /* table header */ print "\n<tr><!-- " . count($state_split) . " -->"; print "<tr bgcolor='#990000'>"; @@ -98,7 +98,7 @@ if ($mode == 'bss') { print "<td><b><font color='#ffffff'>CAPS</td>"; print "</tr>\n\n"; - $states=split("\n",`/sbin/ifconfig {$if} list scan | grep -v "CHAN RATE"`); + $states=split("\n",`/sbin/ifconfig {$if} list scan | grep -v "CHAN RATE"; /sbin/ifconfig {$if} list sta | grep -v "CHAN RATE"`); $counter=0; foreach($states as $state) { @@ -121,7 +121,9 @@ if ($mode == 'bss') { print "</tr>\n"; print "<!-- $state_fixed -->\n"; } -} elseif ($mode == 'hostap') { + + print "</table><table class=\"tabcont\" colspan=\"3\" cellpadding=\"3\" width=\"100%\">"; + /* table header */ print "\n<tr><!-- " . count($state_split) . " -->"; print "<tr bgcolor='#990000'>"; @@ -159,7 +161,6 @@ if ($mode == 'bss') { print "</tr>\n"; print "<!-- $state_fixed -->\n"; } -} /* XXX: what stats to we get for adhoc mode? */ |