Skip to content

lpac: hardcoded /dev/cdc-wdm0 in uqmi backend patch ignores LPAC_QMI_DEV #29061

@cbenhagen

Description

@cbenhagen

Package Name

lpac

Maintainer

@blocktrron

OpenWrt Version

SNAPSHOT

OpenWrt Target/Subtarget

all (bug is in patch source code, not target-specific)

Steps to Reproduce

  1. Set LPAC_QMI_DEV to a device other than /dev/cdc-wdm0 (e.g., /dev/cdc-wdm1)
  2. Run lpac with the uqmi APDU backend
  3. Observe that the --get-client-id command is sent to the wrong device and is malformed

Actual Behaviour

apdu_interface_connect() reads the device path from the LPAC_QMI_DEV environment variable into devpath, and all other uqmi_execute_command() calls in the driver use it correctly. However, uqmi_open_client() bypasses it entirely and always targets /dev/cdc-wdm0.

Confirmation Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions