Fix weird DEAUTH_LEAVING with rt2800usb
I had some issues with my WiFi dongle on Ubuntu 17.04:
[ 5260.374208] IPv6: ADDRCONF(NETDEV_UP): wlx00026f8e18a6: link is not ready [ 5260.643606] IPv6: ADDRCONF(NETDEV_UP): wlx00026f8e18a6: link is not ready [ 5260.830852] IPv6: ADDRCONF(NETDEV_UP): wlx00026f8e18a6: link is not ready [ 5262.539637] IPv6: ADDRCONF(NETDEV_UP): wlx00026f8e18a6: link is not ready [ 5262.644090] wlx00026f8e18a6: authenticate with b2:5b:67:cf:67:c2 [ 5262.675408] wlx00026f8e18a6: send auth to b2:5b:67:cf:67:c2 (try 1/3) [ 5262.880609] wlx00026f8e18a6: send auth to b2:5b:67:cf:67:c2 (try 2/3) [ 5262.885848] wlx00026f8e18a6: authenticated [ 5267.680426] wlx00026f8e18a6: aborting authentication with b2:5b:67:cf:67:c2 by local choice (Reason: 3=DEAUTH_LEAVING) [ 5269.206735] wlx00026f8e18a6: authenticate with b2:5b:67:cf:67:c2 [ 5269.258927] wlx00026f8e18a6: send auth to b2:5b:67:cf:67:c2 (try 1/3)
I rarely use it (it's my desktop computer), nevertheless today I wanted to fix it. I started looking for the issue in the kernel module, but the way to fix this was way too weird to find out by myself:
ln -s /dev/null /etc/systemd/network/99-default.link
It looks like the issue was the name given to the interface, after this command, the wifi network interface is a more common wlan0 instead of wlx00026f8e18a6.. and it works :)
source: Unix stackexchange













