MC7304 renamed wwan1 interface

Hey guys,I’m using QMI_WWAN driver with a MC7304 modem. This creates WWAN1 interface on the my Yocto embedded. But this interface was changed by qmi_wwan to wwp0s17u1u3i10(qmi_wwan 1-1.3:1.10 wwp0s17u1u3i10: renamed from wwan1).I don’t want this.
Can I reset to default name wwan1? How can be done?

Hi shawn.hsiao,

Generally, the interface name is assigned by the drivers of the cards.
You can try to edit this file /etc/udev/rules.d/70-persistent-net.rules
Remember to do this with superuser rights and make a backup.

HI Donald,

I don’t have 70-persistent-net.rules or related modification files.I thank it should be qmi_wwan modified it.
But I don’t know how to stop that.

[ 13.073622] qcserial 1-1.3:1.0: Qualcomm USB modem converter detected
[ 13.074172] usb 1-1.3: Qualcomm USB modem converter now attached to ttyUSB0
[ 13.122773] qcserial 1-1.3:1.2: Qualcomm USB modem converter detected
[ 13.123313] usb 1-1.3: Qualcomm USB modem converter now attached to ttyUSB1
[ 13.187296] qmi_wwan 1-1.3:1.8: cdc-wdm0: USB WDM device
[ 13.188830] qmi_wwan 1-1.3:1.8 wwan0: register ‘qmi_wwan’ at usb-xhci-hcd.1.auto-1.3, WWAN/QMI device, 86:a1:f7:1a:2f:74
[ 13.250977] qmi_wwan 1-1.3:1.10: cdc-wdm1: USB WDM device
[ 13.252186] qmi_wwan 1-1.3:1.10 wwan1: register ‘qmi_wwan’ at usb-xhci-hcd.1.auto-1.3, WWAN/QMI device, 86:a1:f7:1a:2f:74
[ 13.252431] usbcore: registered new interface driver qmi_wwan
[ 13.314493] qcserial 1-1.3:1.3: Qualcomm USB modem converter detected
[ 13.317765] usb 1-1.3: Qualcomm USB modem converter now attached to ttyUSB2
[ 14.094200] qmi_wwan 1-1.3:1.8 wwp0s17u1u3i8: renamed from wwan0
[ 14.115256] qmi_wwan 1-1.3:1.10 wwp0s17u1u3i10: renamed from wwan1

This is info from the kernel. It says qmi_wwan because that’s the driver owning this device. But the rename request came from userspace. Those ugly and confusing names are something systemd use by default. It can be disabled in a number of ways. See:
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

1 Like