diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-16 12:27:47 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-21 08:26:44 +0000 |
commit | a357777d39c87da89c285d496a48b53f294f1e4b (patch) | |
tree | a7efdc35340d323ed6879eb211a0cdf3133cac93 | |
parent | a8f086bfb3be65de133365b55595a9800ecaa681 (diff) |
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
-rw-r--r-- | src/mm-port-qmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |