Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • libqmi libqmi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mobile broadband connectivity
  • libqmilibqmi
  • Issues
  • #10
Closed
Open
Created Mar 04, 2019 by Nick Black@dankamongmen

qmicli fails when device is a valid symlink

When a valid symlink to a device node exists, qmicli still fails to determine the driver and wwan interface corresponding to the dereferenced symlink. This is due to using the -d argument's basename as an index into sysfs.

uptowngirl $ ls -l /dev/cdc-huawei lrwxrwxrwx 1 root root 8 Mar 4 02:02 /dev/cdc-huawei -> cdc-wdm0 uptowngirl $ sudo qmicli -d /dev/cdc-huawei -w [04 Mar 2019, 02:16:05] -Warning ** [/dev/cdc-huawei] couldn't load driver of cdc-wdm port error: couldn't open the QmiDevice: Cannot automatically select QMI/MBIM mode: driver unknown uptowngirl $

I've added code to check for a symlink, and dereference it if so, and issued a pull request at https://github.com/freedesktop/libqmi/pull/1. Since it looks like this is the primary repository, though, I'm making an issue and posting the patch here, as well. Please merge. Thanks!

0001-Support-device-specification-that-is-a-symlink.patch

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking