I am using an AWUS036AC wifi dongle to connect to the internet. I installed the drivers following this instructions.
When I restart my
wpa_supplicant@INTERFACE.service I get this error message:
Association request to the driver failed
iw dev afterwards, it shows me that the interface is still connected to the last ssid (which is obviously not true). I also see that the interface is switching channels, when I run the command again. So my guess is that there is another process interacting with the device. Is there a possibility to find out which processes are using an interface?
I have to set the interface down
sudo ip link set INTERFACE down to be able to restart the service.
wpa_supplicant@INTERFACE.service looks like this:
[Unit] Description=WPA supplicant daemon (interface-specific version) Requires=sys-subsystem-net-devices-%i.device After=sys-subsystem-net-devices-%i.device Before=network.target Wants=network.target # NetworkManager users will probably want the dbus version instead. [Service] Type=simple ExecStart=/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -Dnl80211,wext -i%I [Install] Alias=multi-user.target.wants/wpa_supplicant@%i.service # /etc/systemd/system/wpa_supplicant@INTERFACE.service.d/override.conf [Service] ExecStartPre=/sbin/iw %I set txpower fixed 500 ExecStartPre=/sbin/iptables -t nat -A POSTROUTING -o %I -j MASQUERADE ExecStopPost=-/sbin/iptables -t nat -D POSTROUTING -o %I -j MASQUERADE
-d manually, I find this error messages:
nl80211: MLME connect failed: ret=-114 (Operation already in progress) nl80211: Explicitly disconnecting before reassociation attempt wpa_driver_nl80211_disconnect(reason_code=2)
Maybe there is to find more relevant; the output is a bit overwhelming.
Did anyone had the same issue? Is it a bug? Any guess how to work around this?