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-port-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-port-qmi.h')
-rw-r--r-- | src/mm-port-qmi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-port-qmi.h b/src/mm-port-qmi.h index 2e1afc8c..c177925c 100644 --- a/src/mm-port-qmi.h +++ b/src/mm-port-qmi.h @@ -128,8 +128,16 @@ QmiClient *mm_port_qmi_get_client (MMPortQmi *self, QmiDevice *mm_port_qmi_peek_device (MMPortQmi *self); +typedef struct { + QmiDataEndpointType type; + guint interface_number; + QmiSioPort sio_port; +} MMQmiDataEndpoint; + QmiDataEndpointType mm_port_qmi_get_endpoint_type (MMPortQmi *self); guint mm_port_qmi_get_endpoint_interface_number (MMPortQmi *self); +void mm_port_qmi_get_endpoint_info (MMPortQmi *self, + MMQmiDataEndpoint *out_endpoint); MMPortQmiKernelDataMode mm_port_qmi_get_kernel_data_modes (MMPortQmi *self); QmiWdaLinkLayerProtocol mm_port_qmi_get_link_layer_protocol (MMPortQmi *self); |