aboutsummaryrefslogtreecommitdiff
path: root/src/mm-broadband-bearer.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-03-25 18:30:02 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-04-18 18:08:57 +0200
commit6312753a6bfc09922cd3d2d582f7c3a1ae5f5585 (patch)
tree47277010daf266107b2ca6e1b24ed78a0d41877e /src/mm-broadband-bearer.h
parent595bd5dbe330009a04f7840d3aef2d180e848b4e (diff)
broadband-bearer: once connected, set flow control settings
During modem initialization we detected the flow control settings supported by the modem, and selected the best one to use from them, notifying it to the device via AT+IFC. The device was therefore instructed to use that flow control setting for data transmission in the TTY (i.e. not during AT control commands). The missing thing was to also configure ourselves our end of the serial port with the same flow control settings when getting into data mode. By doing it ourselves, we avoid requiring any explicit setting in pppd for flow control; pppd can assume the flow control settings are already the expected ones. Worth noting that all this setup is completely ignored for TTYs exposed directly via USB. https://bugs.freedesktop.org/show_bug.cgi?id=100394
Diffstat (limited to 'src/mm-broadband-bearer.h')
-rw-r--r--src/mm-broadband-bearer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mm-broadband-bearer.h b/src/mm-broadband-bearer.h
index bee2c521..c317bb5f 100644
--- a/src/mm-broadband-bearer.h
+++ b/src/mm-broadband-bearer.h
@@ -25,6 +25,7 @@
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
+#include "mm-modem-helpers.h"
#include "mm-base-bearer.h"
#include "mm-broadband-modem.h"
@@ -39,6 +40,8 @@ typedef struct _MMBroadbandBearer MMBroadbandBearer;
typedef struct _MMBroadbandBearerClass MMBroadbandBearerClass;
typedef struct _MMBroadbandBearerPrivate MMBroadbandBearerPrivate;
+#define MM_BROADBAND_BEARER_FLOW_CONTROL "broadband-bearer-flow-control"
+
struct _MMBroadbandBearer {
MMBaseBearer parent;
MMBroadbandBearerPrivate *priv;