diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-09 22:45:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-09 22:45:39 +0000 |
commit | 192845df63b2bbd85f984f86457be2433aed1ec1 (patch) | |
tree | ffa18f1d6456efd18eba6d4bc36d49a5b3109551 | |
parent | f7a724e458ccab5ea639ce9b2ddb58c4c8bd78dd (diff) | |
download | pfsense-192845df63b2bbd85f984f86457be2433aed1ec1.zip pfsense-192845df63b2bbd85f984f86457be2433aed1ec1.tar.gz |
Add support for wireless status (media)
Ticket #863
-rwxr-xr-x | usr/local/www/status_interfaces.php | 18 |
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]; |