FS#51372 - [systemd] wrong network interface naming

Attached to Project: Arch Linux
Opened by Rumcajs Lasowy (Rumcajs) - Friday, 14 October 2016, 07:25 GMT
Last edited by Dave Reisner (falconindy) - Friday, 14 October 2016, 16:58 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

My USB-Wifi-Adapter get wrong interface name enp0s19f2u1, correctly the name should start with a "w" for wireless

dmesg :
rtl8192cu 4-1:1.0 enp0s19f2u1: renamed from wlan0

Looks like the kernel has do the job right naming it wlanX but then systemd or udev renamed it wrong.
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 14 October 2016, 16:58 GMT
Reason for closing:  Upstream
Additional comments about closing:  Nothing for Arch to do -- driver needs to export a proper DEVTYPE.
Comment by Rumcajs Lasowy (Rumcajs) - Friday, 14 October 2016, 07:30 GMT
it should be like wp0s19f2u1

i use the AUR driver : https://aur.archlinux.org/packages/8192cu-dkms/ maybe it has something to do with it.
Comment by Dave Reisner (falconindy) - Friday, 14 October 2016, 15:40 GMT
What is the output of 'udevadm info /sys/class/net/enp0s19f2u1' ?
Comment by Rumcajs Lasowy (Rumcajs) - Friday, 14 October 2016, 16:38 GMT
the interface name changed after poweroff it is now enp0s18f2u2, so />sudo udevadm info /sys/class/net/enp0s18f2u2 gives :

P: /devices/pci0000:00/0000:00:12.2/usb3/3-2/3-2:1.0/net/enp0s18f2u2
E: DEVPATH=/devices/pci0000:00/0000:00:12.2/usb3/3-2/3-2:1.0/net/enp0s18f2u2
E: ID_BUS=usb
E: ID_MM_CANDIDATE=1
E: ID_MODEL=802.11n_WLAN_Adapter
E: ID_MODEL_ENC=802.11n\x20WLAN\x20Adapter
E: ID_MODEL_FROM_DATABASE=RTL8192CU 802.11n WLAN Adapter
E: ID_MODEL_ID=8178
E: ID_NET_DRIVER=rtl8192cu
E: ID_NET_LINK_FILE=/usr/lib/systemd/network/99-default.link
E: ID_NET_NAME=enp0s18f2u2
E: ID_NET_NAME_MAC=enx74da388558c3
E: ID_NET_NAME_PATH=enp0s18f2u2
E: ID_OUI_FROM_DATABASE=Edimax Technology Co. Ltd.
E: ID_PATH=pci-0000:00:12.2-usb-0:2:1.0
E: ID_PATH_TAG=pci-0000_00_12_2-usb-0_2_1_0
E: ID_REVISION=0200
E: ID_SERIAL=Realtek_802.11n_WLAN_Adapter_00e04c000001
E: ID_SERIAL_SHORT=00e04c000001
E: ID_TYPE=generic
E: ID_USB_DRIVER=rtl8192cu
E: ID_USB_INTERFACES=:ffffff:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=Realtek
E: ID_VENDOR_ENC=Realtek
E: ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Corp.
E: ID_VENDOR_ID=0bda
E: IFINDEX=3
E: INTERFACE=enp0s18f2u2
E: SUBSYSTEM=net
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enp0s18f2u2 /sys/subsystem/net/devices/enp0s18f2u2
E: TAGS=:systemd:
E: USEC_INITIALIZED=5223420
Comment by Rumcajs Lasowy (Rumcajs) - Friday, 14 October 2016, 16:40 GMT
* the name changed because i have put the the USB-Wifi-Adapter in a different usb port
Comment by Dave Reisner (falconindy) - Friday, 14 October 2016, 16:46 GMT
Sure, the exact name doesn't matter. The problem is that this driver doesn't export DEVTYPE=wlan, so systemd has no idea that it's wireless. You can report this upstream, but I suspect that this is probably something to be fixed in the driver.
Comment by Rumcajs Lasowy (Rumcajs) - Friday, 14 October 2016, 16:51 GMT
Yeah its not a big deal just a wrong naming, it can be a problem if someone use the "ip link" output and try extract the wireless interfaces starting with "w" this will fail. I just want inform your guys about this behavior.
Comment by Dave Reisner (falconindy) - Friday, 14 October 2016, 16:58 GMT
There's nothing Arch for Arch to do with this... please report this to the maintainers of the driver if you want this fixed.

Loading...