mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Show both associated stations and nearby AP's regardless of operating mode.
This commit is contained in:
parent
0675ab803d
commit
c29ad85387
@ -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? */
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user