[PATCH] allow device specification to be a symlink

Nick Black dankamongmen at gmail.com
Wed Mar 6 03:48:11 UTC 2019

I posted this to
but am unsure as to whether that's monitored.

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. Please request changes or merge. Thanks!

nick black -=- https://www.nick-black.com
to make an apple pie from scratch, you need first invent a universe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-device-specification-that-is-a-symlink.patch
Type: text/x-diff
Size: 4126 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20190305/9f303282/attachment.patch>

More information about the libqmi-devel mailing list