NetworkManager wifi device confusion

Running openSUSE Leap 15 KDE on a ThinkPad T61, with both internal and USB wifi adapters. System info is:

howard@T61-oS15KDE:~> inxi -Fxz
Resuming in non X mode: glxinfo not found. For package install advice run: inxi --recommends
System:    Host: T61-oS15KDE Kernel: 4.12.14-lp150.12.4-default x86_64 bits: 64 gcc: 7.3.1
           Desktop: KDE Plasma 5.12.5 (Qt 5.9.4) Distro: openSUSE Leap 15.0
Machine:   Device: laptop System: LENOVO product: 7661KH3 v: ThinkPad T61 serial: N/A
           Mobo: LENOVO model: 7661KH3 serial: N/A BIOS: LENOVO v: 7LETD0WW (2.30 ) date: 02/27/2012
Battery    BAT0: charge: 29.4 Wh 74.4% condition: 39.5/56.2 Wh (70%) model: Panasonic 42T5264 status: N/A
CPU:       Dual core Intel Core2 Duo T7500 (-MCP-) arch: Conroe rev.11 cache: 4096 KB
           flags: (lm nx sse sse2 sse3 ssse3 vmx) bmips: 8777
           clock speeds: max: 2201 MHz 1: 2201 MHz 2: 1200 MHz
Graphics:  Card: Intel Mobile GM965/GL960 Integrated Graphics Controller (primary) bus-ID: 00:02.0
           Display Server: x11 (X.org 1.19.6 ) drivers: modesetting (unloaded: fbdev,vesa) tty size: 179x45
Audio:     Card Intel 82801H (ICH8 Family) HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.12.14-lp150.12.4-default
Network:   Card-1: Intel 82566MM Gigabit Network Connection driver: e1000e v: 3.2.6-k port: 1840 bus-ID: 00:19.0
           IF: eth0 state: down mac: <filter>
           Card-2: Intel PRO/Wireless 4965 AG or AGN [Kedron] Network Connection
           driver: iwl4965 v: in-tree: bus-ID: 03:00.0
           IF: wlan0 state: down mac: <filter>
           Card-3: Belkin F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]
           driver: rtl8192du usb-ID: 001-003
           IF: rename4 state: N/A mac: N/A
           Card-4: Belkin F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]
           driver: rtl8192du usb-ID: 001-003
           IF: wlan2 state: N/A mac: N/A
Drives:    HDD Total Size: 175.9GB (22.0% used)
           ID-1: /dev/sda model: HITACHI_HTS72201 size: 160.0GB
           ID-2: USB /dev/sdb model: USB_2.0_FD size: 15.8GB
Partition: ID-1: / size: 22G used: 7.4G (36%) fs: ext4 dev: /dev/sda5
           ID-2: /home size: 5.3G used: 582M (12%) fs: ext4 dev: /dev/sda6
           ID-3: swap-1 size: 8.36GB used: 0.00GB (0%) fs: swap dev: /dev/sda7
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 184 Uptime: 1 day  0:12 Memory: 1471.7/3865.8MB Init: systemd runlevel: 5 Gcc sys: 7.3.1
           Client: Shell (bash 4.4.191) inxi: 2.3.40 
howard@T61-oS15KDE:~>

Network info is:

howard@T61-oS15KDE:~> ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:1c:25:80:c1:d0 brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether 00:1f:3b:8b:89:4b brd ff:ff:ff:ff:ff:ff
4: rename4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 94:10:3e:6a:fa:59 brd ff:ff:ff:ff:ff:ff
5: wlan2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether 96:10:3e:6a:fa:59 brd ff:ff:ff:ff:ff:ff
6: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 100
    link/none 
howard@T61-oS15KDE:~>

howard@T61-oS15KDE:~> nmcli d
DEVICE   TYPE      STATE         CONNECTION        
tun0     tun       connected     tun0              
rename4  wifi      connected     howardcathy_GN2.4                                                                                                                                 
wlan0    wifi      disconnected  --                                                                                                                                                
wlan2    wifi      disconnected  --                                                                                                                                                
eth0     ethernet  unavailable   --                                                                                                                                                
lo       loopback  unmanaged     -- 
howard@T61-oS15KDE:~>

howard@T61-oS15KDE:~> /usr/sbin/hwinfo --wlan
20: PCI 300.0: 0282 WLAN controller                                                                                                                                                
  [Created at pci.378]                                                                                                                                                             
  Unique ID: y9sn.tEff+dB1XD9                                                                                                                                                      
  Parent ID: qTvu.czCARouY8b4                                                                                                                                                      
  SysFS ID: /devices/pci0000:00/0000:00:1c.1/0000:03:00.0                                                                                                                          
  SysFS BusID: 0000:03:00.0                                                                                                                                                        
  Hardware Class: network                                                                                                                                                          
  Model: "Intel PRO/Wireless 4965 AG or AGN [Kedron] Network Connection"                                                                                                           
  Vendor: pci 0x8086 "Intel Corporation"                                                                                                                                           
  Device: pci 0x4230 "PRO/Wireless 4965 AG or AGN [Kedron] Network Connection"                                                                                                     
  SubVendor: pci 0x8086 "Intel Corporation"                                                                                                                                        
  SubDevice: pci 0x1010                                                                                                                                                            
  Revision: 0x61
  Driver: "iwl4965"
  Driver Modules: "iwl4965"
  Device File: wlan0
  Features: WLAN
  Memory Range: 0xdf3fe000-0xdf3fffff (rw,non-prefetchable)
  IRQ: 31 (no events)
  HW Address: 00:1f:3b:8b:89:4b
  Permanent HW Address: 00:1f:3b:8b:89:4b
  Link detected: no
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 149 153 157 161 165
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.745 5.765 5.785 5.805 5.825
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "pci:v00008086d00004230sv00008086sd00001010bc02sc80i00"
  Driver Info #0:
    Driver Status: iwl4965 is active
    Driver Activation Cmd: "modprobe iwl4965"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #6 (PCI bridge)

31: USB 00.0: 0282 WLAN controller
  [Created at usb.122]
  Unique ID: 2UT6.qgkBEPGscT7
  Parent ID: k4bc.cO89g+iefn1
  SysFS ID: /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0
  SysFS BusID: 1-3:1.0
  Hardware Class: network
  Model: "Belkin F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]"
  Hotplug: USB
  Vendor: usb 0x050d "Belkin Components"
  Device: usb 0x110a "F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]"
  Serial ID: "00e04c000001"
  Driver: "rtl8192du"
  Driver Modules: "8192du"
  Device File: rename4
  Features: WLAN
  Speed: 480 Mbps
  HW Address: 94:10:3e:6a:fa:59
  Permanent HW Address: 94:10:3e:6a:fa:59
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 149 153 157 161 165
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 5.18 5.2 5.22 5.24 5.745 5.765 5.785 5.805 5.825
  WLAN bitrates: 1 2 5.5 11
  WLAN encryption modes: TKIP CCMP
  WLAN authentication modes: open wpa-psk wpa-eap
  Module Alias: "usb:v050Dp110Ad0000dc00dsc00dp00icFFiscFFipFFin00"
  Driver Info #0:
    Driver Status: 8192du is active
    Driver Activation Cmd: "modprobe 8192du"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #34 (Hub)
howard@T61-oS15KDE:~> 

The internal Intel PRO/Wireless 4965 has long been difficult in Linux, so I am not interested in it.

The Belkin USB adapter has somehow gotten set up as wlan2 and rename4. (After some boots it has been rename3 or once rename6, but is mostly rename4.) rename4 has the correct mac address, and correctly connects to the router. wlan2 has the second digit wrong in the mac address, a 6 instead of a 4. Our router uses mac address filtering, so wlan2 could not connect because its address was not allowed. I added the incorrect address to the allowed list and got it to connect once, but not again.

What is the source of rename4?

How can I correct the mac address of wlan2 so it works?

Thanks,
Howard

Examine /etc/udev/rules.d/70-persistent-net.rules for the entries contained there and edit the name to match your requirements. You may wall have additional entries matching for the same hardware, so you can remove those as required.

For reference, I have the following pertaining to a wired and wireless NIC…

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="20:68:9d:8b:3c:2e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="4c:72:b9:d7:29:49", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

That file states

You can modify it,as long as you keep each rule on a single

line,and change only the value of the NAME= key.

I do not care about the name, only the mac address. The file contains

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:3b:8b:89:4b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:25:80:c1:d0", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# USB device 0x050d:0x110a (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="ehci-pci", ATTR{dev_id}=="0x0", KERNELS=="0000:00:1a.7", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan2"

but has no mac address for the USB device. Can the wlan2 mac address be changed, and if so where is it stored?

How is the device enumerated by hwinfo? (Look for the HW address)…

/usr/sbin/hwinfo --netcard

For example, if I add a wireless device, I get

27: USB 00.0: 0282 WLAN controller
  [Created at usb.122]
  Unique ID: Yl4J.x9IMWGGtcg8
  Parent ID: KRJj.4Nx_qoDfSd7
  SysFS ID: /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0
  SysFS BusID: 3-1.2:1.0
  Hardware Class: network
  Model: "Realtek RTL8188CUS 802.11n WLAN Adapter"
  Hotplug: USB
  Vendor: usb 0x0bda "Realtek Semiconductor Corp."
  Device: usb 0x8176 "RTL8188CUS 802.11n WLAN Adapter"
  Revision: "2.00"
  Serial ID: "00e04c000001"
  Driver: "rtl8192cu"
  Driver Modules: "rtl8192cu"
  Device File: wlan1
  Features: WLAN
  Speed: 480 Mbps
  HW Address: 22:c2:a1:ab:f7:0c
  Permanent HW Address: a0:f3:c1:22:27:e5
  Link detected: no
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "usb:v0BDAp8176d0200dc00dsc00dp00icFFiscFFipFFin00"
  Driver Info #0:
    Driver Status: rtl8192cu is active
    Driver Activation Cmd: "modprobe rtl8192cu"
  Driver Info #1:
    Driver Status: rtl8xxxu is active
    Driver Activation Cmd: "modprobe rtl8xxxu"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #24 (Hub)

and the following udev rule added…

# USB device 0x0bda:0x8176 (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="a0:f3:c1:22:27:e5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"

You can use ‘udevadm info’ to determine valid device attributes for rule matching. I would be surprised if ATTR{address} wasn’t one of them as with mine.

Referring back to your ‘wlan2’ device, you can examine the device attributes for matching by walking along the chain of parent devices using something like

udevadm info --attribute-walk -p /sys/class/net/wlan2

From the command itself, note the following…

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

/usr/sbin/hwinfo --netcard

Interesting. rename4 is listed but wlan2 does not appear.

howard@T61-oS15KDE:~> /usr/sbin/hwinfo --netcard
07: PCI 19.0: 0200 Ethernet controller                          
  [Created at pci.378]
  Unique ID: rBUF.QgxdHTFew92
  SysFS ID: /devices/pci0000:00/0000:00:19.0
  SysFS BusID: 0000:00:19.0
  Hardware Class: network
  Model: "Lenovo ThinkPad T61/R61"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x1049 "82566MM Gigabit Network Connection"
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x20b9 "ThinkPad T61/R61"
  Revision: 0x03
  Driver: "e1000e"
  Driver Modules: "e1000e"
  Device File: eth0
  Memory Range: 0xfe000000-0xfe01ffff (rw,non-prefetchable)
  Memory Range: 0xfe025000-0xfe025fff (rw,non-prefetchable)
  I/O Ports: 0x1840-0x185f (rw)
  IRQ: 31 (243 events)
  HW Address: 00:1c:25:80:c1:d0
  Permanent HW Address: 00:1c:25:80:c1:d0
  Link detected: no
  Module Alias: "pci:v00008086d00001049sv000017AAsd000020B9bc02sc00i00"
  Driver Info #0:
    Driver Status: e1000e is active
    Driver Activation Cmd: "modprobe e1000e"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

25: PCI 300.0: 0282 WLAN controller
  [Created at pci.378]
  Unique ID: y9sn.tEff+dB1XD9
  Parent ID: qTvu.czCARouY8b4
  SysFS ID: /devices/pci0000:00/0000:00:1c.1/0000:03:00.0
  SysFS BusID: 0000:03:00.0
  Hardware Class: network
  Model: "Intel PRO/Wireless 4965 AG or AGN [Kedron] Network Connection"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x4230 "PRO/Wireless 4965 AG or AGN [Kedron] Network Connection"
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1010                                                                                                                                                            
  Revision: 0x61                                                                                                                                                                   
  Driver: "iwl4965"                                                                                                                                                                
  Driver Modules: "iwl4965"                                                                                                                                                        
  Device File: wlan0                                                                                                                                                               
  Features: WLAN
  Memory Range: 0xdf3fe000-0xdf3fffff (rw,non-prefetchable)
  IRQ: 32 (193642 events)
  HW Address: 00:1f:3b:8b:89:4b
  Permanent HW Address: 00:1f:3b:8b:89:4b
  Link detected: no
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 149 153 157 161 165
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.745 5.765 5.785 5.805 5.825
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "pci:v00008086d00004230sv00008086sd00001010bc02sc80i00"
  Driver Info #0:
    Driver Status: iwl4965 is active
    Driver Activation Cmd: "modprobe iwl4965"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #11 (PCI bridge)

38: USB 00.0: 0282 WLAN controller
  [Created at usb.122]
  Unique ID: 2UT6.qgkBEPGscT7
  Parent ID: k4bc.cO89g+iefn1
  SysFS ID: /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0
  SysFS BusID: 1-3:1.0
  Hardware Class: network
  Model: "Belkin F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]"
  Hotplug: USB
  Vendor: usb 0x050d "Belkin Components"
  Device: usb 0x110a "F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]"
  Serial ID: "00e04c000001"
  Driver: "rtl8192du"
  Driver Modules: "8192du"
  Device File: rename4
  Features: WLAN
  Speed: 480 Mbps
  HW Address: 94:10:3e:6a:fa:59
  Permanent HW Address: 94:10:3e:6a:fa:59
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 149 153 157 161 165
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 5.18 5.2 5.22 5.24 5.745 5.765 5.785 5.805 5.825
  WLAN bitrates: 1 2 5.5 11
  WLAN encryption modes: TKIP CCMP
  WLAN authentication modes: open wpa-psk wpa-eap
  Module Alias: "usb:v050Dp110Ad0000dc00dsc00dp00icFFiscFFipFFin00"
  Driver Info #0:
    Driver Status: 8192du is active
    Driver Activation Cmd: "modprobe 8192du"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #40 (Hub)
howard@T61-oS15KDE:~>

However, wlan2 is present in

howard@T61-oS15KDE:~> nmcli d
DEVICE   TYPE      STATE         CONNECTION        
rename4  wifi      connected     howardcathy_GN2.4 
wlan0    wifi      disconnected  --                
wlan2    wifi      disconnected  --                
eth0     ethernet  unavailable   --                
lo       loopback  unmanaged     --                
howard@T61-oS15KDE:~>

That gives

howard@T61-oS15KDE:~> udevadm info --attribute-walk -p /sys/class/net/wlan2

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/net/wlan2':
    KERNEL=="wlan2"
    SUBSYSTEM=="net"
    DRIVER==""
    ATTR{addr_assign_type}=="0"
    ATTR{addr_len}=="6"
    ATTR{address}=="96:10:3e:6a:fa:59"
    ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
    ATTR{carrier}=="0"
    ATTR{carrier_changes}=="2"
    ATTR{dev_id}=="0x0"
    ATTR{dev_port}=="0"
    ATTR{dormant}=="0"
    ATTR{flags}=="0x1003"
    ATTR{gro_flush_timeout}=="0"
    ATTR{ifalias}==""
    ATTR{ifindex}=="5"
    ATTR{iflink}=="5"
    ATTR{link_mode}=="1"
    ATTR{mtu}=="1500"
    ATTR{netdev_group}=="0"
    ATTR{operstate}=="down"
    ATTR{proto_down}=="0"
    ATTR{tx_queue_len}=="1000"
    ATTR{type}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0':
    KERNELS=="1-3:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="rtl8192du"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceClass}=="ff"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="ff"
    ATTRS{bInterfaceSubClass}=="ff"
    ATTRS{bNumEndpoints}=="04"
    ATTRS{supports_autosuspend}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1/1-3':
    KERNELS=="1-3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="500mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0000"
    ATTRS{bmAttributes}=="80"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="3"
    ATTRS{devpath}=="3"
    ATTRS{idProduct}=="110a"
    ATTRS{idVendor}=="050d"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Realtek"
    ATTRS{maxchild}=="0"
    ATTRS{product}=="802.11n NIC"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{serial}=="00e04c000001"
    ATTRS{speed}=="480"
    ATTRS{urbnum}=="399150"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:1a.7/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{authorized_default}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="0mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0412"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="1"
    ATTRS{devpath}=="0"
    ATTRS{idProduct}=="0002"
    ATTRS{idVendor}=="1d6b"
    ATTRS{interface_authorized_default}=="1"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Linux 4.12.14-lp150.12.4-default ehci_hcd"
    ATTRS{maxchild}=="4"
    ATTRS{product}=="EHCI Host Controller"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{serial}=="0000:00:1a.7"
    ATTRS{speed}=="480"
    ATTRS{urbnum}=="78"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:1a.7':
    KERNELS=="0000:00:1a.7"
    SUBSYSTEMS=="pci"
    DRIVERS=="ehci-pci"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x0c0320"
    ATTRS{companion}==""
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0x283a"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="22"
    ATTRS{local_cpulist}=="0-1"
    ATTRS{local_cpus}=="3"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="-1"
    ATTRS{revision}=="0x03"
    ATTRS{subsystem_device}=="0x20ab"
    ATTRS{subsystem_vendor}=="0x17aa"
    ATTRS{uframe_periodic_max}=="100"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

howard@T61-oS15KDE:~> 

showing the incorrect adapter mac address (96 instead of 94).
Regards,
Howard

This is the HW address…

ATTR{address}=="96:10:3e:6a:fa:59"

and consistent with your hwinfo output for the same Belkin device.

A suitable udev rule might look like this…

# USB device 0x050d:0x110a (usb)
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="96:10:3e:6a:fa:59", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan2"

Actually, that is the incorrect mac address (96 instead of 94) that is set for wlan2.

I disabled wireless, unplugged the USB adapter, deleted the Network Manager connections for the USB devices, and rebooted. Then I plugged in the USB adapter, did

sudo modprobe 8192du

and enabled wireless.

/etc/udev/rules.d/70-persistent-net.rules
now shows

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:3b:8b:89:4b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:25:80:c1:d0", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# USB device 0x050d:0x110a (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="94:10:3e:6a:fa:59", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"

# USB device 0x050d:0x110a (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="ehci-pci", ATTR{dev_id}=="0x0", KERNELS=="0000:00:1a.7", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan2"

It now has wlan1 with the correct mac address, even though it has wlan2 with no mac address shown. In Network Manager, wlan2 again shows with the wrong address. Connecting through Network Manager with the wlan1 option works.
I do not know just how all this happened, but I can live with the way it is currently functioning.
Thanks for your advice.
Howard

All I can comment on is what hwinfo and udev report. :wink:

Good to read that the manual entry is working for you.

Here’s an old bug report that describes similar behaviour which may be of interest…

…so it does seem that systemd/udev can get it wrong sometimes.