summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-09-17 18:36:08 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-09-17 18:36:08 +0000
commitc29ad8538723305eefffa54003940e88ab5a0e4e (patch)
tree25bacdea5718ad09564c8a7dda3ade35451d2a6f /usr
parent0675ab803da248320dfccb2950bb0b1c53d7bbcc (diff)
downloadpfsense-c29ad8538723305eefffa54003940e88ab5a0e4e.zip
pfsense-c29ad8538723305eefffa54003940e88ab5a0e4e.tar.gz
Show both associated stations and nearby AP's regardless of operating mode.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_wireless.php9
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? */
OpenPOWER on IntegriCloud