abperiasamy / rtl8812AU_8821AU_linux

rtl8812AU_8821AU linux kernel driver for AC1200 (801.11ac) Wireless Dual-Band USB Adapter
GNU General Public License v2.0
1.23k stars 434 forks source link

Does not work with NetworkManager in Fedora 25 with kernel 4.11.10 #223

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi, I got it to compilie (See issue #222). @ptpt52, I did try making after disabling CONFIG_CONCURRENT_MODE, without any success.

When the NetworkManager service is started it's as though it (something, I don't know what) is trying to create two devices,

  1. wlp0s18f2u4
  2. wlan0

I think that only the wlp0s18f2u4 device should be created. Also the system log is spammed furiously. The error messages look like this.

When the NetworkManager service is started the log gets spammed furiously. This is what I get:

ul 22 19:29:29 localhost.localdomain systemd[1]: Starting Network Manager...
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8472] NetworkManager (version 1.4.4-5.fc25) is starting...
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8473] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 20-connectivity-fedora.conf)
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8533] manager[0x55670544a0c0]: monitoring kernel firmware directory '/lib/firmware'.
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8557] dns-mgr[0x556705427aa0]: init: dns=default, rc-manager=symlink
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8573] rfkill8: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4:1.0/ieee80211/phy0/rfkill8) (driver rtl8812au)
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8576] rfkill9: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4:1.0/ieee80211/phy1/rfkill9) (driver rtl8812au)
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8580] manager[0x55670544a0c0]: WiFi hardware radio set enabled
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8580] manager[0x55670544a0c0]: WWAN hardware radio set enabled
Jul 22 19:29:29 localhost.localdomain systemd[1]: Started Network Manager.
Jul 22 19:29:29 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 22 19:29:29 localhost.localdomain dbus-daemon[785]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.118' (uid=0 pid=8215 comm="/usr/sbin/NetworkManager --no-daemon " label="system_u:system_r:NetworkManager_t:s0")
Jul 22 19:29:29 localhost.localdomain systemd[1]: Starting Network Manager Script Dispatcher Service...
Jul 22 19:29:29 localhost.localdomain dbus-daemon[785]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jul 22 19:29:29 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 22 19:29:29 localhost.localdomain systemd[1]: Started Network Manager Script Dispatcher Service.
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8790] settings: loaded plugin ifcfg-rh: (c) 2007 - 2015 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list. (/usr/lib64/NetworkManager/libnm-settings-plugin-ifcfg-rh.so)
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8792] settings: loaded plugin iBFT: (c) 2014 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list. (/usr/lib64/NetworkManager/libnm-settings-plugin-ibft.so)
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8793] settings: loaded plugin keyfile: (c) 2007 - 2015 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8808] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-Wired_connection_2 (b1a72e80-c268-484c-8761-1ddfce1fcd2c,"Wired connection 2")
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8819] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-doggins (2a41723b-503a-4010-b915-d657b07ed312,"doggins")
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8827] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-enp3s0 (414ee9e8-1401-356c-b978-0c770366566d,"enp3s0")
Jul 22 19:29:29 localhost.localdomain NetworkManager[8215]: <info>  [1500766169.8956] keyfile: new connection /etc/NetworkManager/system-connections/us-ca2.nordvpn.com.tcp443_ (3b527459-c6a0-47a2-ba98-d56880d111c9,"us-ca2.nordvpn.com.tcp443")
Jul 22 19:29:29 localhost.localdomain dbus-daemon[785]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.118' (uid=0 pid=8215 comm="/usr/sbin/NetworkManager --no-daemon " label="system_u:system_r:NetworkManager_t:s0")
Jul 22 19:29:29 localhost.localdomain systemd[1]: Starting Hostname Service...
Jul 22 19:29:30 localhost.localdomain dbus-daemon[785]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jul 22 19:29:30 localhost.localdomain systemd[1]: Started Hostname Service.
Jul 22 19:29:30 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0227] settings: hostname: using hostnamed
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0230] settings: hostname changed from (none) to "localhost.localdomain"
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0234] dhcp-init: Using DHCP client 'dhclient'
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0234] manager: WiFi enabled by radio killswitch; enabled by state file
Jul 22 19:29:30 localhost.localdomain nm-dispatcher[8219]: req:1 'hostname': new request (5 scripts)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0235] manager: WWAN enabled by radio killswitch; enabled by state file
Jul 22 19:29:30 localhost.localdomain nm-dispatcher[8219]: req:1 'hostname': start running ordered scripts...
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0235] manager: Networking is enabled by state file
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0236] Loaded device plugin: NMVxlanFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0236] Loaded device plugin: NMVlanFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0236] Loaded device plugin: NMVethFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0236] Loaded device plugin: NMTunFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0237] Loaded device plugin: NMMacvlanFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0237] Loaded device plugin: NMIPTunnelFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0237] Loaded device plugin: NMInfinibandFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0237] Loaded device plugin: NMEthernetFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0238] Loaded device plugin: NMBridgeFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0238] Loaded device plugin: NMBondFactory (internal)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0247] Loaded device plugin: NMAtmManager (/usr/lib64/NetworkManager/libnm-device-plugin-adsl.so)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0264] Loaded device plugin: NMTeamFactory (/usr/lib64/NetworkManager/libnm-device-plugin-team.so)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0287] Loaded device plugin: NMBluezManager (/usr/lib64/NetworkManager/libnm-device-plugin-bluetooth.so)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0293] Loaded device plugin: NMWifiFactory (/usr/lib64/NetworkManager/libnm-device-plugin-wifi.so)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0298] Loaded device plugin: NMWwanFactory (/usr/lib64/NetworkManager/libnm-device-plugin-wwan.so)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0308] device (lo): link connected
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0318] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/0)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0339] manager: (enp3s0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/1)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0352] device (enp3s0): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jul 22 19:29:30 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0370] manager: (virbr0): new Bridge device (/org/freedesktop/NetworkManager/Devices/2)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0389] ifcfg-rh: add connection in-memory (e59d1b23-7b7a-4f2c-b714-bb83146adff7,"virbr0")
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0395] device (virbr0): state change: unmanaged -> unavailable (reason 'connection-assumed') [10 20 41]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0397] device (virbr0): state change: unavailable -> disconnected (reason 'connection-assumed') [20 30 41]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0412] device (virbr0): Activation: starting connection 'virbr0' (e59d1b23-7b7a-4f2c-b714-bb83146adff7)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0422] manager: (virbr0-nic): new Tun device (/org/freedesktop/NetworkManager/Devices/3)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0428] device (enp0s19f2u1): link connected
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0435] manager: (enp0s19f2u1): new Ethernet device (/org/freedesktop/NetworkManager/Devices/4)
Jul 22 19:29:30 localhost.localdomain dnsmasq[1295]: reading /etc/resolv.conf
Jul 22 19:29:30 localhost.localdomain dnsmasq[1295]: using nameserver 192.168.42.129#53
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0456] manager: (enp0s19f2u1): found matching connection 'Wired connection 2'
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0457] device (enp0s19f2u1): state change: unmanaged -> unavailable (reason 'connection-assumed') [10 20 41]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0459] device (enp0s19f2u1): state change: unavailable -> disconnected (reason 'connection-assumed') [20 30 41]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0466] device (enp0s19f2u1): Activation: starting connection 'Wired connection 2' (b1a72e80-c268-484c-8761-1ddfce1fcd2c)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0468] (wlan0): using nl80211 for WiFi device control
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0470] device (wlan0): driver supports Access Point (AP) mode
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0487] manager: (wlan0): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/5)
Jul 22 19:29:30 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:30 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.0496] device (wlan0): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jul 22 19:29:30 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <warn>  [1500766170.1547] device (wlan0): set-hw-addr: new MAC address 6A:D9:1F:08:AE:3E not successfully set (scanning)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.1557] (wlp0s18f2u4): using nl80211 for WiFi device control
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.1557] device (wlp0s18f2u4): driver supports Access Point (AP) mode
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.1597] manager: (wlp0s18f2u4): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/6)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.1646] device (wlp0s18f2u4): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jul 22 19:29:30 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:30 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <warn>  [1500766170.4923] device (wlp0s18f2u4): set-hw-addr: new MAC address 6A:E8:B0:AE:24:27 not successfully set (scanning)
Jul 22 19:29:30 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5464] ModemManager available in the bus
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5824] supplicant: wpa_supplicant running
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5824] device (wlp0s18f2u4): supplicant interface state: init -> starting
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5824] device (wlan0): supplicant interface state: init -> starting
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5842] device (virbr0): state change: disconnected -> prepare (reason 'none') [30 40 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5847] device (enp0s19f2u1): state change: disconnected -> prepare (reason 'none') [30 40 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5856] device (virbr0): state change: prepare -> config (reason 'none') [40 50 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5857] device (enp0s19f2u1): state change: prepare -> config (reason 'none') [40 50 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5860] device (virbr0): state change: config -> ip-config (reason 'none') [50 70 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5932] device (virbr0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.5940] device (enp0s19f2u1): state change: config -> ip-config (reason 'none') [50 70 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.6056] dhcp4 (enp0s19f2u1): activation: beginning transaction (timeout in 45 seconds)
Jul 22 19:29:30 localhost.localdomain nm-dispatcher[8219]: req:2 'pre-up' [virbr0]: new request (1 scripts)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.6638] dhcp4 (enp0s19f2u1): dhclient started with pid 8262
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.6994] device (virbr0): state change: ip-check -> secondaries (reason 'none') [80 90 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.6997] device (virbr0): state change: secondaries -> activated (reason 'none') [90 100 0]
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.6997] manager: NetworkManager state is now CONNECTED_LOCAL
Jul 22 19:29:30 localhost.localdomain gnome-shell[1251]: gsignal.c:2641: instance '0x561a4d3cbba0' has no handler with id '16635'
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.7185] policy: set 'Wired connection 2' (enp0s19f2u1) as default for IPv4 routing and DNS
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.7189] device (virbr0): Activation: successful, device activated.
Jul 22 19:29:30 localhost.localdomain nm-dispatcher[8219]: req:3 'up' [virbr0]: new request (5 scripts)
Jul 22 19:29:30 localhost.localdomain nm-dispatcher[8219]: req:3 'up' [virbr0]: start running ordered scripts...
Jul 22 19:29:30 localhost.localdomain gnome-shell[1711]: gsignal.c:2641: instance '0x559217913ec0' has no handler with id '78497'
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.7375] sup-iface[0x5567054ab6d0,wlp0s18f2u4]: supports 5 scan SSIDs
Jul 22 19:29:30 localhost.localdomain dhclient[8262]: DHCPREQUEST on enp0s19f2u1 to 255.255.255.255 port 67 (xid=0xed92951e)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.7401] sup-iface[0x5567054ab620,wlan0]: supports 5 scan SSIDs
Jul 22 19:29:30 localhost.localdomain dhclient[8262]: DHCPACK from 192.168.42.129 (xid=0xed92951e)
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.7504] device (wlp0s18f2u4): supplicant interface state: starting -> ready
Jul 22 19:29:30 localhost.localdomain NetworkManager[8215]: <info>  [1500766170.7507] device (wlp0s18f2u4): state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Jul 22 19:29:30 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:30 localhost.localdomain systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <warn>  [1500766171.0837] device (wlp0s18f2u4): set-hw-addr: new MAC address 6A:E8:B0:AE:24:27 not successfully set (scanning)
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.0842] device (wlan0): supplicant interface state: starting -> ready
Jul 22 19:29:31 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.0874] device (wlp0s18f2u4): supplicant interface state: ready -> disabled
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.0883] device (wlan0): state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Jul 22 19:29:31 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <warn>  [1500766171.1949] device (wlan0): set-hw-addr: new MAC address 6A:D9:1F:08:AE:3E not successfully set (scanning)
Jul 22 19:29:31 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.1974] dhcp4 (enp0s19f2u1):   address 192.168.42.145
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.1975] dhcp4 (enp0s19f2u1):   plen 24 (255.255.255.0)
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.1976] dhcp4 (enp0s19f2u1):   gateway 192.168.42.129
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.1976] dhcp4 (enp0s19f2u1):   server identifier 192.168.42.129
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.1976] dhcp4 (enp0s19f2u1):   lease time 3600
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.1977] dhcp4 (enp0s19f2u1):   nameserver '192.168.42.129'
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.1977] dhcp4 (enp0s19f2u1): state changed unknown -> bound
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.1988] device (wlp0s18f2u4): supplicant interface state: disabled -> inactive
Jul 22 19:29:31 localhost.localdomain dhclient[8262]: bound to 192.168.42.145 -- renewal in 1355 seconds.
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <warn>  [1500766171.5275] device (wlp0s18f2u4): set-hw-addr: new MAC address 6A:E8:B0:AE:24:27 not successfully set (scanning)
Jul 22 19:29:31 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.5283] device (wlan0): supplicant interface state: ready -> disabled
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.5320] device (wlp0s18f2u4): supplicant interface state: inactive -> disabled
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.5321] device (wlan0): supplicant interface state: disabled -> inactive
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <warn>  [1500766171.6388] device (wlan0): set-hw-addr: new MAC address 6A:D9:1F:08:AE:3E not successfully set (scanning)
Jul 22 19:29:31 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.6416] device (wlp0s18f2u4): supplicant interface state: disabled -> inactive
Jul 22 19:29:31 localhost.localdomain nm-dispatcher[8219]: req:4 'connectivity-change': new request (5 scripts)
Jul 22 19:29:31 localhost.localdomain nm-dispatcher[8219]: req:4 'connectivity-change': start running ordered scripts...
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <warn>  [1500766171.9693] device (wlp0s18f2u4): set-hw-addr: new MAC address 6A:E8:B0:AE:24:27 not successfully set (scanning)
Jul 22 19:29:31 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.9701] device (wlan0): supplicant interface state: inactive -> disabled
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.9716] device (wlp0s18f2u4): supplicant interface state: inactive -> disabled
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.9718] device (wlan0): supplicant interface state: disabled -> disconnected
Jul 22 19:29:31 localhost.localdomain NetworkManager[8215]: <info>  [1500766171.9720] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <warn>  [1500766172.0820] device (wlan0): set-hw-addr: new MAC address 6A:D9:1F:08:AE:3E not successfully set (scanning)
Jul 22 19:29:32 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.0836] device (wlp0s18f2u4): supplicant interface state: disabled -> inactive
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <warn>  [1500766172.4070] device (wlp0s18f2u4): set-hw-addr: new MAC address 6A:E8:B0:AE:24:27 not successfully set (scanning)
Jul 22 19:29:32 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.4081] device (wlan0): supplicant interface state: inactive -> disabled
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.4149] device (wlp0s18f2u4): supplicant interface state: inactive -> disabled
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.4150] device (wlan0): supplicant interface state: disabled -> inactive
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <warn>  [1500766172.5207] device (wlan0): set-hw-addr: new MAC address 6A:D9:1F:08:AE:3E not successfully set (scanning)
Jul 22 19:29:32 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.5222] device (wlp0s18f2u4): supplicant interface state: disabled -> inactive
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <warn>  [1500766172.8493] device (wlp0s18f2u4): set-hw-addr: new MAC address 6A:E8:B0:AE:24:27 not successfully set (scanning)
Jul 22 19:29:32 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.8502] device (wlan0): supplicant interface state: inactive -> disabled
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.8516] device (wlp0s18f2u4): supplicant interface state: inactive -> disabled
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.8518] device (wlan0): supplicant interface state: disabled -> inactive
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <warn>  [1500766172.9602] device (wlan0): set-hw-addr: new MAC address 6A:D9:1F:08:AE:3E not successfully set (scanning)
Jul 22 19:29:32 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:32 localhost.localdomain NetworkManager[8215]: <info>  [1500766172.9633] device (wlp0s18f2u4): supplicant interface state: disabled -> inactive
Jul 22 19:29:33 localhost.localdomain NetworkManager[8215]: <warn>  [1500766173.2901] device (wlp0s18f2u4): set-hw-addr: new MAC address 6A:E8:B0:AE:24:27 not successfully set (scanning)
Jul 22 19:29:33 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:33 localhost.localdomain NetworkManager[8215]: <info>  [1500766173.2905] device (wlan0): supplicant interface state: inactive -> disabled
Jul 22 19:29:33 localhost.localdomain NetworkManager[8215]: <info>  [1500766173.2910] device (wlp0s18f2u4): supplicant interface state: inactive -> disabled
Jul 22 19:29:33 localhost.localdomain NetworkManager[8215]: <info>  [1500766173.2911] device (wlan0): supplicant interface state: disabled -> inactive
Jul 22 19:29:33 localhost.localdomain NetworkManager[8215]: <warn>  [1500766173.3967] device (wlan0): set-hw-addr: new MAC address 6A:D9:1F:08:AE:3E not successfully set (scanning)
Jul 22 19:29:33 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 22 19:29:33 localhost.localdomain NetworkManager[8215]: <info>  [1500766173.3998] device (wlp0s18f2u4): supplicant interface state: disabled -> inactive
Jul 22 19:29:33 localhost.localdomain NetworkManager[8215]: <warn>  [1500766173.7273] device (wlp0s18f2u4): set-hw-addr: new MAC address 6A:E8:B0:AE:24:27 not successfully set (scanning)
Jul 22 19:29:33 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s18f2u4: link is not ready
Jul 22 19:29:33 localhost.localdomain NetworkManager[8215]: <info>  [1500766173.7280] device (wlan0): supplicant interface state: inactive -> disabled
ptpt52 commented 7 years ago

make sure you reload/reinstall the kmod rtl8812au.ko

ptpt52 commented 7 years ago

maybe it is something wrong with NetworkManager

ghost commented 7 years ago

Taking a hint from https://bugzilla.redhat.com/show_bug.cgi?id=1382741#c10 I added

[device]
wifi.scan-rand-mac-address=no

to /etc/NetworkManager/NetworkManager.conf. Reading the same bug report it appears that this workaround may be done automatically in more recent versions of NetworkManager (see https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=023417292339e34dd07e5b902576c1472ff0c3dd).

Using this trick I did get it to work, but there's still two fully equivalent devices, which are

  1. wlp0s18f2u4
  2. wlan0 or wlan1 (Network manager can't even make up it's mind about which of the two it is when I boot).

The devices always have the same set of connections, so you can use either one of the two and I can't figure out a way to get rid of wlan0/wlan1. Also when I boot, if I have my PC join the wireless network automatically, it seems to randomly choose to connect on either one of the two devices. That means that when setting up my firewalling, I have to triplicate my rules. I have to have the same rule for each of wlp0s18f2u4, wlan0 and wlan1. (Routing is ok though, because routing is done per connection in network manager).

ghost commented 7 years ago

I have taken some further measures which remove wlan0/wlan1 from the picture so I don't have to triplicate my firewall rules any more. I have added the following two identical files.

  1. /etc/sysconfig/network-scripts/ifcfg-wlan0
  2. /etc/sysconfig/network-scripts/ifcfg-wlan1

The content of the files is as follows:

NM_CONTROLLED=no
HWADDR=70:4D:7B:12:C9:8C

So now things are basically back to normal but that's after two kludgey workarounds.

ptpt52 commented 7 years ago

I think it is something wrong with your kmod, you are probably using a CONFIG_CONCURRENT_MODE kmod. You should do an clean-up and comment out the CONFIG_CONCURRENT_MODE in Makefile and re-build/re-install the kmod

ghost commented 7 years ago

@ptpt52 I think I already tried that. (I may give it one more shot just do double check I guess). Anyway it turns out that I can't identify interfaces with a MAC address because sometimes **wlan* gets one and sometimes wlp0s18f2u4 gets the other and the actual choice of which gets which seems random. So instead of having the extra ifcfg** files, I have added the following to /etc/NetworkManager/NetworkManager.conf.

[keyfile]
unmanaged-devices=interface-name:wlan*
ghost commented 7 years ago

@ptpt52. I compiled again with CONFIG_CONCURRENT_MODE disabled. What happened is that the apparent race-condition behaviour was not solved, but the creation of the unwanted **wlan*** device did not happen, so it solved one problem and not the other. I probably didn't notice this when I first tried it because I was focused on the race-condition problem, which is clearly the more serious of the two problems.

ghost commented 7 years ago

I'll make two new issues (maybe tomorrow) and close this one since these do appear to be separate.