NetworkManager ignoring cdc_ether interface usb0

Bug #908522 reported by Pali
6
This bug affects 1 person
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/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
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:00:1d.0-1.1, CDC Ethernet Device, 76:61:7d:56:ed:da
Dec 25 09:51:29 Pali-EliteBook NetworkManager[4360]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.8/net/usb0, iface: usb0)
Dec 25 09:51:29 Pali-EliteBook NetworkManager[4360]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.8/net/usb0, iface: usb0): no ifupdown configuration found.
Dec 25 09:51:29 Pali-EliteBook NetworkManager[4360]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/net/usbpn0, iface: usbpn0)
Dec 25 09:51:29 Pali-EliteBook NetworkManager[4360]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/net/usbpn0, iface: usbpn0): no ifupdown configuration found

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-udev-manager.c line 507-517 is this:

 /* 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_device_get_property (device, "ID_VENDOR_ID");
 if (g_strcmp0 (tmp, "0421") == 0) { /* Nokia vendor ID */
  tmp = g_udev_device_get_property (device, "ID_MODEL");
  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)

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

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.

Changed in network-manager (Ubuntu Precise):
status: New → Fix Released
Changed in network-manager (Ubuntu Oneiric):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in network-manager (Ubuntu Oneiric):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.