WiFi authentication times out

29,587

Solution 1

I found the solution here:

echo "options iwlwifi 11n_disable=1 wd_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf

Reboot, and it works again.

Solution 2

I recommend you to switch to iwd as a replacement for wpa_supplicant if WiFi speeds are important to you, as disabling 802.11n (as recommended in the other answer with the 11n_disable option) may cause a decrease in network performance in 2.4GHz networks that support 802.11n.

I got this to work on my HP Elitebook 1030 running Manjaro GNOME and am very glad I now get to profit from the entire WiFi bandwidth my home network provides. Before, disabling 802.11n was the only option I knew of. Here goes a little guide on how to get iwd up and running instead of wpa_supplicant.

Installation & Setup

Install the required package:

sudo dnf install iwd

Edit the NetworkManager config (I'm assuming you're running NetworkManager):

sudo nano /etc/NetworkManager/NetworkManager.conf
# https://iwd.wiki.kernel.org/networkmanager#nm_configuration
[device]
wifi.backend=iwd

The above config will make NetworkManager use iwd instead of wpa_supplicant which you're having problems with.

We now need to start/stop/restart the required services to get the config loaded and applied.

sudo systemctl stop wpa_supplicant.service
sudo systemctl stop NetworkManager.service
sudo systemctl start iwd
sudo systemctl restart NetworkManager.service

And to make your changes permanent (by having the correct service start on boot and without interfering with the wrong one):

sudo systemctl disable wpa_supplicant.service
sudo systemctl enable iwd

You should now be able to connect to WiFi networks using the normal GUI. If connecting that way doesn't work for you, try using the iwctl command line interface. Connecting to the correct network should work that way. To get an IP-Address assigned, you may need to run the command dhclient.

Refer to the Arch Wiki Link below to learn more about iwd and iwctl. Also refer to the Arch Wiki if you're having issues like getting your password (PSK) to work.

If you can connect to networks successfully, try removing the /etc/modprobe.d/iwlwifi.conf file to re-activate 802.11n on next boot / module reload. This was the point of switching to iwd, after all.

sudo rm /etc/modprobe.d/iwlwifi.conf

Sources

Steps taken from linux-whv.de, ArchWiki on iwd

Share:
29,587

Related videos on Youtube

Bart Friederichs
Author by

Bart Friederichs

Entrepeneur, programmer, father, husband, friend. Programming in Java/C/C++/C#/.NET/Javascript/HTML/CSS/PHP/Python on Linux/Android/Windows. Using Android Studio, Visual Studio (Code) and/or joe. #SOreadytohelp

Updated on September 18, 2022

Comments

  • Bart Friederichs
    Bart Friederichs almost 2 years

    Since today I have this very annoying issue that the WiFi on my HP ProBook is not authenticating anymore. I haven't changed any settings and my mobile phone connects to the WiFi fine. Also trying another WiFi access point (in fact, my mobile phone hotspot) doesn't work.

    The scan seems to work, as SSIDs show up fine. Also, if no key is provided, it nicely asks for it. But then, I see this in dmesg:

    [ 1854.199036] wlo1: authenticate with 92:68:c3:f4:ec:3a
    [ 1854.201743] wlo1: send auth to 92:68:c3:f4:ec:3a (try 1/3)
    [ 1854.275690] wlo1: send auth to 92:68:c3:f4:ec:3a (try 2/3)
    [ 1854.334745] wlo1: send auth to 92:68:c3:f4:ec:3a (try 3/3)
    [ 1854.393245] wlo1: authentication with 92:68:c3:f4:ec:3a timed out
    

    I had the issue on Fedora 20, so I upgraded to 21. Problem remains the same. Even updated to 22 beta, with wpa_supplicant, version 2.3. Same problem.

    In my attempts to resolve this issue I found some extras:

    • The adapter works fine in Windows 7, so my router and the hardware is fine.
    • I tried to use wpa_cli, but I get the message it cannot connect.
    • The ctrl_interface in wpa_supplicant.conf is not created

    In the wpa_supplicant.log, I get this:

    wlo1: SME: Trying to authenticate with 00:24:01:df:c2:fb (SSID='MYSSID' freq=2467 MHz)
    wlo1: SME: Trying to authenticate with 00:24:01:df:c2:fb (SSID='MYSSID' freq=2467 MHz)
    wlo1: SME: Trying to authenticate with 00:24:01:df:c2:fb (SSID='MYSSID' freq=2467 MHz)
    wlo1: SME: Trying to authenticate with 00:24:01:df:c2:fb (SSID='MYSSID' freq=2467 MHz)
    wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MYSSID" auth_failures=1 duration=10 reason=CONN_FAILED
    

    Update Even access points without any encryption are not associated.

  • linuxdev2013
    linuxdev2013 about 9 years
    to add some clarification here the 802.11n/ac part can be dodgy disable them
  • gws
    gws over 5 years
    Curious why you didn't just say 'add this to the conf file' instead of the tee construct?
  • Bart Friederichs
    Bart Friederichs over 5 years
    @gws, no idea exactly, but this is a quote from the source, plus this way people can easily copy and paste it into their terminal, instead of firing up an editor.
  • Arnaud Meuret
    Arnaud Meuret almost 4 years
    For what it's worth, this is what got me out of trouble after upgrading to Ubuntu 20.04LTS, sadly. My Thinkpad laptop would no longer connect to a TP-Link router where it was still working with another router running OpenWRT. HTH.
  • user2305193
    user2305193 almost 4 years
    @linuxdev2013 'can be dodgy disable them'? That adds more confusion for me, assuming this is bad grammar/typo
  • Noah Boegli
    Noah Boegli about 3 years
    5 years later you solved a 5-months-long problem for me. THANK YOU! Btw, rebooting might not be necessary, simply restart the iwd service sudo systemctl restart iwd.