Skip to contentSkip to conversation

New: USB tethering fails with rndis_host on 6.14.2

Bug 220002 [email protected] 1 participant 9 messages Apr 10, 2025 – Jan 7 USB

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=220002

            Bug ID: 220002
           Summary: USB tethering fails with rndis_host on 6.14.2
           Product: Drivers
           Version: 2.5
          Hardware: AMD
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: USB
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

After compiling from 6.14.1 to 6.14.2 my USB tether stopped working.
- Phone: Tested on two phones (samsung and xiaomi)
- Kernel: 6.14.2
- OS: centos stream

dmesg:

```
$ sudo dmesg | grep '5-1'
[ 4706.908695] usb 5-1: new high-speed USB device number 2 using xhci_hcd
[ 4707.040053] usb 5-1: New USB device found, idVendor=2717, idProduct=ff40,
bcdDevice= 5.15
[ 4707.040062] usb 5-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 4707.040064] usb 5-1: Product: Redmi Note 12
[ 4707.040066] usb 5-1: Manufacturer: Xiaomi
[ 4707.040067] usb 5-1: SerialNumber: d6a7620f
[ 4716.408590] usb 5-1: USB disconnect, device number 2
[ 4716.771173] usb 5-1: new high-speed USB device number 3 using xhci_hcd
[ 4716.900356] usb 5-1: New USB device found, idVendor=2717, idProduct=ff80,
bcdDevice= 5.15
[ 4716.900362] usb 5-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 4716.900364] usb 5-1: Product: Redmi Note 12
[ 4716.900365] usb 5-1: Manufacturer: Xiaomi
[ 4716.900367] usb 5-1: SerialNumber: d6a7620f
[ 4716.971029] rndis_host 5-1:1.0 wwan0: register 'rndis_host' at
usb-0000:0b:00.4-1, Mobile Broadband RNDIS device, 86:aa:5b:28:2a:ef
[ 4716.976223] rndis_host 5-1:1.0 wwp11s0f4u1: renamed from wwan0
[ 4751.690348] usb 5-1: USB disconnect, device number 3
[ 4751.690389] rndis_host 5-1:1.0 wwp11s0f4u1: unregister 'rndis_host'
usb-0000:0b:00.4-1, Mobile Broadband RNDIS device
[ 6113.354484] usb 5-1: new high-speed USB device number 4 using xhci_hcd
[ 6113.487020] usb 5-1: New USB device found, idVendor=2717, idProduct=ff40,
bcdDevice= 5.15
[ 6113.487026] usb 5-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 6113.487028] usb 5-1: Product: Redmi Note 12
[ 6113.487029] usb 5-1: Manufacturer: Xiaomi
[ 6113.487031] usb 5-1: SerialNumber: d6a7620f
[ 6124.087792] usb 5-1: USB disconnect, device number 4
[ 6124.442925] usb 5-1: new high-speed USB device number 5 using xhci_hcd
[ 6124.574687] usb 5-1: New USB device found, idVendor=2717, idProduct=ff80,
bcdDevice= 5.15
[ 6124.574704] usb 5-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 6124.574706] usb 5-1: Product: Redmi Note 12
[ 6124.574708] usb 5-1: Manufacturer: Xiaomi
[ 6124.574709] usb 5-1: SerialNumber: d6a7620f
[ 6124.624566] rndis_host 5-1:1.0 wwan0: register 'rndis_host' at
usb-0000:0b:00.4-1, Mobile Broadband RNDIS device, f2:00:f5:90:be:3a
[ 6124.631938] rndis_host 5-1:1.0 wwp11s0f4u1: renamed from wwan0
```

networking outputs:

```
$ ip link show wwp11s0f4u1
4: wwp11s0f4u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state
UNKNOWN mode DEFAULT group default qlen 1000
    link/ether f2:00:f5:90:be:3a brd ff:ff:ff:ff:ff:ff
    altname wwxf200f590be3a


$ ip addr show wwp11s0f4u1
4: wwp11s0f4u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state
UNKNOWN group default qlen 1000
    link/ether f2:00:f5:90:be:3a brd ff:ff:ff:ff:ff:ff
    altname wwxf200f590be3a
    inet6 2a02:4540:9025:d677:f000:f5ff:fe90:be3a/64 scope global dynamic
mngtmpaddr proto kernel_ra 
       valid_lft 7121sec preferred_lft 7121sec
    inet6 fe80::f000:f5ff:fe90:be3a/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever
```
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 220002] USB tethering fails with rndis_host on 6.14.2

https://bugzilla.kernel.org/show_bug.cgi?id=220002

Michał Pecio ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Michał Pecio ([email protected]) ---
No meaningful changes to USB core or xhci_hcd, wild guess that maybe you could try reverting this?

d34963d968a6 rndis_host: Flag RNDIS modems as WWAN devices

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 220002] USB tethering fails with rndis_host on 6.14.2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220002

Julien Delquié ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Julien Delquié ([email protected]) --- I have the exact same issue with :
- Phone : Fairphone 4 5G
- Kernel: 6.14.2
- OS: Gentoo/Linux

I just reverted that patch, and it works: d34963d968a6 rndis_host: Flag RNDIS modems as WWAN devices.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw

[Bug 220002] USB tethering fails with rndis_host on 6.14.2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220002

hooman ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#5 lore raw

[Bug 220002] USB tethering fails with rndis_host on 6.14.2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220002

hooman ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|CODE_FIX |ANSWERED

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#6 lore raw

[Bug 220002] USB tethering fails with rndis_host on 6.14.2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220002

Christian Heusel ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from Christian Heusel ([email protected]) --- I have now also posted this to the mailing lists:
https://lore.kernel.org/all/[email protected]/

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#7 lore raw

[Bug 220002] USB tethering fails with rndis_host on 6.14.2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220002

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #5 from [email protected] ---

static const struct usb_device_id rndis_wwan_ids[] = {
    { USB_DEVICE(0x12d1, 0x14dc) }, /* Huawei example */
    { USB_DEVICE(0x19d2, 0x1405) }, /* ZTE example */
    { } /* terminating entry */
};

static bool rndis_is_wwan(struct usb_interface *intf)

{
    if (usb_match_id(intf, rndis_wwan_ids))
        return true;

    return false;
}

static int rndis_bind(struct usbnet *dev, struct usb_interface *intf)

{
    int ret;

    ret = generic_rndis_bind(dev, intf, FLAG_RNDIS_PHYM_NOT_WIRELESS);
    if (ret)
        return ret;

    /* Only mark known WWAN devices as WWAN */
    if (rndis_is_wwan(intf))
        dev->net->type = ARPHRD_NONE;

    return 0;
}

Maybe you can try to bind only usbid fits wwan

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#8 lore raw

[Bug 220002] USB tethering fails with rndis_host on 6.14.2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220002

--- Comment #6 from [email protected] ---

static const struct usb_device_id rndis_wwan_ids[] = {
    { USB_DEVICE(0x12d1, 0x14dc) }, /* Huawei example */
    { USB_DEVICE(0x19d2, 0x1405) }, /* ZTE example */
    { } /* terminating entry */
};

static bool rndis_is_wwan(struct usb_interface *intf)

{
    if (usb_match_id(intf, rndis_wwan_ids))
        return true;

    return false;
}

static int rndis_bind(struct usbnet *dev, struct usb_interface *intf)

{
    int ret;

    ret = generic_rndis_bind(dev, intf, FLAG_RNDIS_PHYM_NOT_WIRELESS);
    if (ret)
        return ret;

    /* Only mark known WWAN devices as WWAN */
    if (rndis_is_wwan(intf))
        dev->net->type = ARPHRD_NONE;

    return 0;
}

Maybe you can try to bind only usbid fits wwan

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.