[PATCH] allow device specification to be a symlink
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
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...
Size: 4126 bytes
Desc: not available
More information about the libqmi-devel