summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-09 22:45:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-09 22:45:39 +0000
commit192845df63b2bbd85f984f86457be2433aed1ec1 (patch)
treeffa18f1d6456efd18eba6d4bc36d49a5b3109551 /usr
parentf7a724e458ccab5ea639ce9b2ddb58c4c8bd78dd (diff)
downloadpfsense-192845df63b2bbd85f984f86457be2433aed1ec1.zip
pfsense-192845df63b2bbd85f984f86457be2433aed1ec1.tar.gz
Add support for wireless status (media)
Ticket #863
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_interfaces.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php
index 5dcd57b..b756161 100755
--- a/usr/local/www/status_interfaces.php
+++ b/usr/local/www/status_interfaces.php
@@ -169,15 +169,17 @@ function get_interface_info($ifdescr) {
exec("/sbin/ifconfig " . $ifinfo['hwif'], $ifconfiginfo);
$matches = "";
foreach ($ifconfiginfo as $ici) {
- if (!isset($config['interfaces'][$ifdescr]['wireless'])) {
- /* don't list media/speed for wireless cards, as it always
- displays 2 Mbps even though clients can connect at 11 Mbps */
- if (preg_match("/media: .*? \((.*?)\)/", $ici, $matches)) {
- $ifinfo['media'] = $matches[1];
- } else if (preg_match("/media: Ethernet (.*)/", $ici, $matches)) {
- $ifinfo['media'] = $matches[1];
- }
+
+ /* don't list media/speed for wireless cards, as it always
+ displays 2 Mbps even though clients can connect at 11 Mbps */
+ if (preg_match("/media: .*? \((.*?)\)/", $ici, $matches)) {
+ $ifinfo['media'] = $matches[1];
+ } else if (preg_match("/media: Ethernet (.*)/", $ici, $matches)) {
+ $ifinfo['media'] = $matches[1];
+ } else if (preg_match("/media: IEEE 802.11 Wireless Ethernet (.*)/", $ici, $matches)) {
+ $ifinfo['media'] = $matches[1];
}
+
if (preg_match("/status: (.*)$/", $ici, $matches)) {
if ($matches[1] != "active")
$ifinfo['status'] = $matches[1];
OpenPOWER on IntegriCloud