estkme-group / lpac

C-based eUICC LPA
GNU Affero General Public License v3.0
267 stars 63 forks source link

driver: apdu: add QMI backend #131

Closed robimarko closed 2 months ago

robimarko commented 3 months ago

This patch series adds support for using QMI interface directly.

Previously QMI over QRTR support was added, however that is only present in modern Qualcomm modems and only when running in PCIe mode and its quite common to still only use even the latest modems via USB.

In that case, they are all still controllable via QMI but it is directly exposed as a character device in Linux so we can reuse most of the code from QMI over QRTR support but drop the support for libqrtr to talk to the modems.

We require the QMI device path to be passed via QMI_DEVICE env variable for the backend to operate.

Most commits in the series are to refactor the current QMI code in order to avoid duplicating core, or to get rid of using global variables for the common code.

robimarko commented 2 months ago

Fixed up the build warning

septs commented 2 months ago

if you are ready, plz click "Ready for review" convert the PR state