aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2020-11-18 12:02:42 +0100
committerLoic Poulain <loic.poulain@linaro.org>2020-11-18 12:02:42 +0100
commit7857bef6bd5ccd1ef45bef35b18cb3741c096ab9 (patch)
treef1aca4110a37a92e37b34abb72b3efd19d611cbc
parent5f433a5a8e4b999fd8892ca5f88a2b15a163be83 (diff)
Configure for 16 aggregated packet max
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
-rwxr-xr-xmhi-qmi-connectbin100312 -> 100312 bytes
-rw-r--r--mhi-qmi-connect.c14
2 files changed, 10 insertions, 4 deletions
diff --git a/mhi-qmi-connect b/mhi-qmi-connect
index 7faf235..edb5d4d 100755
--- a/mhi-qmi-connect
+++ b/mhi-qmi-connect
Binary files differ
diff --git a/mhi-qmi-connect.c b/mhi-qmi-connect.c
index 1877f2d..6b6a1ad 100644
--- a/mhi-qmi-connect.c
+++ b/mhi-qmi-connect.c
@@ -10,10 +10,16 @@
#include <gio/gio.h>
#define MAX_QMAP_DATAGRAM_SIZE 16384
-#define MAX_QMAP_AGGREGATED_DATAGRAM 32
+#define MAX_QMAP_AGGREGATED_DATAGRAM 16
+
+#define DATA_ENDPOINT_TYPE QMI_DATA_ENDPOINT_TYPE_PCIE
#define IFACE_ID 4
-#define WWAN_IFACE "mhi_hwip0"
+// Embedded config (IPA/Network from modem CPU)
+//#define DATA_ENDPOINT_TYPE QMI_DATA_ENDPOINT_TYPE_EMBEDDED
+//#define IFACE_ID 1
+
+#define WWAN_IFACE "mhi_hwip0"
#define MHI_CONFIG_DEFAULT "/etc/mhi-qmi-connect.conf"
static GMainLoop *loop;
@@ -562,7 +568,7 @@ static void allocate_wds_client_ready(QmiDevice *dev, GAsyncResult *res)
input = qmi_message_wds_bind_mux_data_port_input_new();
qmi_message_wds_bind_mux_data_port_input_set_endpoint_info(
- input, QMI_DATA_ENDPOINT_TYPE_PCIE, IFACE_ID, &error);
+ input, DATA_ENDPOINT_TYPE, IFACE_ID, &error);
qmi_message_wds_bind_mux_data_port_input_set_mux_id(
input, config.mux_id, &error);
@@ -629,7 +635,7 @@ static void allocate_wda_client_ready(QmiDevice *dev, GAsyncResult *res)
qmi_message_wda_set_data_format_input_set_link_layer_protocol(
input, QMI_WDA_LINK_LAYER_PROTOCOL_RAW_IP, &error);
qmi_message_wda_set_data_format_input_set_endpoint_info(
- input, QMI_DATA_ENDPOINT_TYPE_PCIE, IFACE_ID, &error);
+ input, DATA_ENDPOINT_TYPE, IFACE_ID, &error);
qmi_client_wda_set_data_format(client_wda, input, 10, cancellable,
(GAsyncReadyCallback)set_data_format_ready, NULL);