summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-05-23 12:15:23 +0200
committersmos <seth.mos@dds.nl>2012-05-23 12:15:23 +0200
commit99f95f7d3be4b85dcbd3c15455c6fbd704b6fa73 (patch)
tree72c4550a00de06966d2700a050da1eff4452a11e /etc
parentfe7fef6418ff469a09c1dee1c1704240ae0e4633 (diff)
downloadpfsense-99f95f7d3be4b85dcbd3c15455c6fbd704b6fa73.zip
pfsense-99f95f7d3be4b85dcbd3c15455c6fbd704b6fa73.tar.gz
Add the 3G mode display, really needs a function that translates these into sane display numbers for strength and mode.
The mode is actually a combination of LED color 4 = blue(idle), 5 = cyan(connected), and submode 7 = HSDPA I need to find some proper documentation, really.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 1cfea7a..ccd04ddd 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1267,8 +1267,9 @@ function get_interface_info($ifdescr) {
$cellstats = file($mondev);
$a_cellstats = explode(",", $cellstats[1]);
$ifinfo['cell_rssi'] = $a_cellstats[1];
- $ifinfo['cell_upstream'] = $a_cellstats[7];
- $ifinfo['cell_downstream'] = trim($a_cellstats[8]);
+ $ifinfo['cell_mode'] = $a_cellstats[2] .",". $a_cellstats[3];
+ $ifinfo['cell_upstream'] = $a_cellstats[8];
+ $ifinfo['cell_downstream'] = trim($a_cellstats[9]);
}
// Calculate cumulative uptime for PPP link. Useful for connections that have per minute/hour contracts so you don't go over!
if (isset($ppp['uptime']))
OpenPOWER on IntegriCloud