diff options
author | smos <seth.mos@dds.nl> | 2012-05-23 12:15:23 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-05-23 12:15:23 +0200 |
commit | 99f95f7d3be4b85dcbd3c15455c6fbd704b6fa73 (patch) | |
tree | 72c4550a00de06966d2700a050da1eff4452a11e /etc/inc/pfsense-utils.inc | |
parent | fe7fef6418ff469a09c1dee1c1704240ae0e4633 (diff) | |
download | pfsense-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/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 5 |
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'])) |