#20110: wwan for ncm not working
-----------------------+----------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: packages | Version: Trunk
Keywords: |
-----------------------+----------------------------------
E3272,
{{{
# cat /lib/network/wwan/12d1\:1506
{
"desc": "Huawei E367/E398",
"type": "ncm"
}
}}}
{{{
Sat Jul 18 09:49:23 2015 user.emerg syslog: setting up led WLAN
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): BusyBox v1.23.2
(2015-06-15 21:29:03 CEST) multi-call binary.
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663):
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): Usage: basename
FILE [SUFFIX]
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663):
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): Strip directory
path and .SUFFIX from FILE
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663):
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663):
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): wwan[1663]
Using proto:wwan device:/dev/ iface:wwan0 desc:Huawei E367/E398
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): ls: /net: No
such file or directory
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): The interface
could not be found.
}}}
{{{
# cat /sys/class/net/wwan0/device/uevent
DEVTYPE=usb_interface
DRIVER=huawei_cdc_ncm
PRODUCT=12d1/1506/102
TYPE=0/0/0
INTERFACE=255/2/22
MODALIAS=usb:v12D1p1506d0102dc00dsc00dp00icFFisc02ip16in02
}}}
{{{
root@OpenWrt:/sys/devices/platform/ehci-
platform/usb1/1-1/1-1:1.2/net/wwan0# cd /sys/class/net/wwan0/; find
../../../ -name ttyUSB*
../../../1-1:1.0/ttyUSB0
../../../1-1:1.0/ttyUSB0/tty/ttyUSB0
../../../1-1:1.1/ttyUSB1
../../../1-1:1.1/ttyUSB1/tty/ttyUSB1
root@OpenWrt:/sys/devices/platform/ehci-
platform/usb1/1-1/1-1:1.2/net/wwan0# cd /sys/class/net/wwan0/; find
../../../ -name ttyUSB* | xargs basename
BusyBox v1.23.2 (2015-06-15 21:29:03 CEST) multi-call binary.
Usage: basename FILE [SUFFIX]
Strip directory path and .SUFFIX from FILE
}}}
Proposal solution:
{{{
ctl_device=/dev/$(cd /sys/class/net/$net/; find ../../../ -name ttyUSB*
|head -n1 | xargs basename )
}}}
in /lib/netifd/proto/wwan.sh
--
Ticket URL: <https://dev.openwrt.org/ticket/20110>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets