← Back to team overview

desktop-packages team mailing list archive

[Bug 908522] Re: NetworkManager ignoring cdc_ether interface usb0

 

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.

** Also affects: network-manager (Ubuntu Oneiric)
   Importance: Undecided
       Status: New

** Also affects: network-manager (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Changed in: network-manager (Ubuntu Precise)
       Status: New => Fix Released

** Changed in: network-manager (Ubuntu Oneiric)
       Status: New => Triaged

** Changed in: network-manager (Ubuntu Oneiric)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/908522

Title:
  NetworkManager ignoring cdc_ether interface usb0

Status in “network-manager” package in Ubuntu:
  Fix Released
Status in “network-manager” source package in Oneiric:
  Triaged
Status in “network-manager” source package in Precise:
  Fix Released

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/908522/+subscriptions


References