diff options
author | Stephan Gerhold <stephan.gerhold@kernkonzept.com> | 2022-08-11 17:53:00 +0200 |
---|---|---|
committer | Stephan Gerhold <stephan.gerhold@kernkonzept.com> | 2022-08-18 18:12:49 +0200 |
commit | bc1cecbfc40bbac48beaf9bfe20f1403ebdbb959 (patch) | |
tree | d1ad606b69cbc1f8817af6832d8d286be7851daa /src/mm-broadband-modem-qmi.h | |
parent | 2b83e274742039432de81f663c34383c238d0314 (diff) |
broadband-modem-qmi: choose endpoint number based on data port
At the moment the endpoint type/number is chosen based on the QMI
control port. The assumption is that multiplexing is implemented using
an additional protocol layer (e.g. QMAP) or that each network interface
has its own QMI control port.
This is not necessarily the case for BAM-DMUX. To use the built-in
multiplexing the WDS client must be bound to the correct data port.
This works already for older firmware versions using "Bind Data Port"
(SIO port numbers), but not for newer ones using "Bind Mux Data Port"
(endpoint type/interface numbers).
Make it work for newer firmware versions as well by choosing the
endpoint type/number based on the data port similar to the existing
implementation for SIO port numbers.
Note: The correct endpoint interface number is currently only used for
the steps in mm-bearer-qmi. Ideally more refactoring should be done in
mm-port-qmi to call WDA Set Data Format for each of the endpoints.
In practice it usually works fine without because the data format is
set correctly by default.
Diffstat (limited to 'src/mm-broadband-modem-qmi.h')
-rw-r--r-- | src/mm-broadband-modem-qmi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mm-broadband-modem-qmi.h b/src/mm-broadband-modem-qmi.h index 9b712109..e324d793 100644 --- a/src/mm-broadband-modem-qmi.h +++ b/src/mm-broadband-modem-qmi.h @@ -34,12 +34,12 @@ struct _MMBroadbandModemQmi { MMBroadbandModemQmiPrivate *priv; }; -struct _MMBroadbandModemQmiClass{ +struct _MMBroadbandModemQmiClass { MMBroadbandModemClass parent; MMPortQmi * (* peek_port_qmi_for_data) (MMBroadbandModemQmi *self, MMPort *data, - QmiSioPort *out_sio_port, + MMQmiDataEndpoint *out_endpoint, GError **error); }; @@ -55,12 +55,12 @@ MMBroadbandModemQmi *mm_broadband_modem_qmi_new (const gchar *device, MMPortQmi *mm_broadband_modem_qmi_peek_port_qmi (MMBroadbandModemQmi *self); MMPortQmi *mm_broadband_modem_qmi_peek_port_qmi_for_data (MMBroadbandModemQmi *self, MMPort *data, - QmiSioPort *out_sio_port, + MMQmiDataEndpoint *out_endpoint, GError **error); MMPortQmi *mm_broadband_modem_qmi_get_port_qmi (MMBroadbandModemQmi *self); MMPortQmi *mm_broadband_modem_qmi_get_port_qmi_for_data (MMBroadbandModemQmi *self, MMPort *data, - QmiSioPort *out_sio_port, + MMQmiDataEndpoint *out_endpoint, GError **error); #endif /* MM_BROADBAND_MODEM_QMI_H */ |