From a357777d39c87da89c285d496a48b53f294f1e4b Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 16 Jun 2021 12:27:47 +0200 Subject: port-qmi: apply master MTU handling to all multiplexing types in qmi_wwan If using rmnet and IP passthrough setting in qmi_wwan, also configure the master interface with an MTU equal to the maximum data aggregation size. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/367 --- src/mm-port-qmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mm-port-qmi.c b/src/mm-port-qmi.c index ababc305..0565f9c6 100644 --- a/src/mm-port-qmi.c +++ b/src/mm-port-qmi.c @@ -1305,9 +1305,9 @@ setup_master_mtu (GTask *task) self = g_task_get_source_object (task); ctx = g_task_get_task_data (task); - /* qmi_wwan add_mux/del_mux based logic requires master mtu set to the maximum data + /* qmi_wwan multiplexing logic requires master mtu set to the maximum data * aggregation size */ - if (ctx->kernel_data_modes_requested & MM_PORT_QMI_KERNEL_DATA_MODE_MUX_QMIWWAN) { + if (ctx->kernel_data_modes_requested & (MM_PORT_QMI_KERNEL_DATA_MODE_MUX_RMNET | MM_PORT_QMI_KERNEL_DATA_MODE_MUX_QMIWWAN)) { /* Load current max datagram size supported */ if (MM_PORT_QMI_DAP_IS_SUPPORTED_QMAP (ctx->wda_dl_dap_requested)) mtu = ctx->wda_dl_dap_max_size_current; -- cgit v1.2.3-70-g09d2