Re: [PATCH] Do not use obsolete XCASE terminal mode flag

2015-11-27 Thread Aleksander Morgado
On Sat, Oct 17, 2015 at 4:53 PM, Felix Janda wrote: > The XCASE terminal mode flag because is no longer specified by POSIX > and has no effect on linux. Because of the latter fact we can remove > it. This fixes a compilation error with musl libc. > --- Pushed to git master, thanks. > libqcdm/sr

[PATCH 2/6] libmm-glib: new helper object to handle bearer stats

2015-11-27 Thread Aleksander Morgado
The new MMBearerStats object provides a simple API to interact with the new dictionary containing the bearer connection stats. --- docs/reference/libmm-glib/libmm-glib-docs.xml | 1 + docs/reference/libmm-glib/libmm-glib-sections.txt | 30 +++ libmm-glib/Makefile.am

Bearer connection stats

2015-11-27 Thread Aleksander Morgado
The following patch series implements a new 'Stats' property in the Bearer object which reports connection statistics. The values are directly retrieved from the device (e.g. queried), as opposed to measuring the stats in the network interface. This implementation is currently limited to: * B

[PATCH 4/6] cli: print stats if bearer reports them

2015-11-27 Thread Aleksander Morgado
--- cli/mmcli-bearer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/cli/mmcli-bearer.c b/cli/mmcli-bearer.c index 5829e60..7c4fe62 100644 --- a/cli/mmcli-bearer.c +++ b/cli/mmcli-bearer.c @@ -135,10 +135,12 @@ print_bearer_info (MMBearer *bearer) MMBearerIpConfi

[PATCH 1/6] introspection: new 'Stats' property in the bearer object

2015-11-27 Thread Aleksander Morgado
The new property is a dictionary which may include different parameters, depending on what is actually supported by the underlying modem. For now, just bytes RX/TX. Note that this object will expose the stats *as reported by the modem*. These values may differ from e.g. what is seen in the network

[PATCH 5/6] base-bearer: setup periodic stats loading

2015-11-27 Thread Aleksander Morgado
If the bearer implementation supports it, load stats periodically. By default every 30s for now. --- src/mm-base-bearer.c | 123 +-- src/mm-base-bearer.h | 16 +-- 2 files changed, 133 insertions(+), 6 deletions(-) diff --git a/src/mm-base-bear

[PATCH 3/6] libmm-glib: retrieve stats from the bearer

2015-11-27 Thread Aleksander Morgado
The MMBearer object is updated to provide getter methods to retrieve the new MMBearerStats object. --- docs/reference/libmm-glib/libmm-glib-sections.txt | 2 + libmm-glib/mm-bearer.c| 116 ++ libmm-glib/mm-bearer.h| 4

[PATCH 6/6] bearer-qmi: implement stats loading

2015-11-27 Thread Aleksander Morgado
Use the "WDS Get Packet Statistics" method to query for the ongoing number of bytes transmitted or received. The QMI implementation uses different WDS clients for IPv4 and IPv6; the stats reported are a combination of the values retrieved from both WDS clients. --- src/mm-bearer-qmi.c | 154 ++