NetworkManager ignoring cdc_ether interface usb0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Oneiric |
Won't Fix
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
NetworkManager ignoring cdc_ether interface usb0. In syslog is only this outout:
Dec 25 09:51:29 Pali-EliteBook mtp-probe: checking bus 2, device 11: "/sys/devices/
Dec 25 09:51:29 Pali-EliteBook kernel: [ 1801.528548] cdc_acm 2-1.1:1.6: This device cannot do calls on its own. It is not a modem.
Dec 25 09:51:29 Pali-EliteBook kernel: [ 1801.528784] cdc_acm 2-1.1:1.6: ttyACM0: USB ACM device
Dec 25 09:51:29 Pali-EliteBook mtp-probe: bus: 2, device: 11 was not an MTP device
Dec 25 09:51:29 Pali-EliteBook kernel: [ 1801.531506] cdc_ether 2-1.1:1.8: usb0: register 'cdc_ether' at usb-0000:
Dec 25 09:51:29 Pali-EliteBook NetworkManager[
Dec 25 09:51:29 Pali-EliteBook NetworkManager[
Dec 25 09:51:29 Pali-EliteBook NetworkManager[
Dec 25 09:51:29 Pali-EliteBook NetworkManager[
And NetworkManager totally ignored it.
On other side of usb cable is Linux device Nokia N900, where is runninf dhcp server, so NetworkManager should working fine with usb0 too. But output of
$ nmcli dev
does not contains any usb0 interface.
When I call manually:
$ sudo dhclient usb0
network connection is established and ip address assigned correctly (from dhcp server).
So why NM ignoring this interface? It is same as other eth0....
In NM code in file src/nm-
/* Ignore Nokia cdc-ether interfaces in PC-Suite mode since we need to
* talk phonet to use them, which ModemManager doesn't do yet.
*/
tmp = g_udev_
if (g_strcmp0 (tmp, "0421") == 0) { /* Nokia vendor ID */
tmp = g_udev_
if (tmp && (strstr (tmp, "PC-Suite") || strstr (tmp, "PC Suite"))) {
nm_log_dbg (LOGD_HW, "ignoring Nokia PC-Suite ethernet interface");
return;
}
}
I think that this section ignoring my usb0 interface (is has really name PC-Suite). Why is here this stupid checking? It should be commented, because I (and other people too) cannot use phone as cdc_ether device...
Output from lsusb:
Bus 002 Device 011: ID 0421:01c8 Nokia Mobile Phones N900 (PC-Suite Mode)
This is on purpose; instead we'll repurpose this as needing to fix the N900 ;)
This is essentially fixed in Precise already, so I'll mark it as such. Since the fix is relatively simple we could even actually backport this to Oneiric.