Show both associated stations and nearby AP's regardless of operating mode.

This commit is contained in:
Scott Ullrich 2007-09-17 18:36:08 +00:00
parent 0675ab803d
commit c29ad85387

View File

@ -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? */