Wi-fi connects only after forgetting the network

Dear friends,

I’ve been using fedora since version 15, but recently I’m having trouble connecting to wifi on saved networks. All networks are visible but the connection fails. The only way to connect is to forget all saved networks and then connect and re-enter the password.

I’m on fedora 34 but have this issue also on 33. My computer is an old Lenovo Thinkpad T410. My adapter:

lspci -k | grep Network
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35)

I appreciate any help,
Thank you

EDIT
The same thing occurred also to connect by bluetooth tethering. Looks like an authentication issue.

You can check the files in /etc/NetworkManager/system-connections .
Save them and check with one connection what changed while delete/create a new connection.

Compare old with new and you can see what is different.

Hi @ilikelinux, thanks for your help.

I compared the old and new files, and they are exactly the same when connection fails or succeed.

I noticed that I can disconnect and reconnect, but if I reboot it doesn’t work anymore.
There is also an message that lasts about 20-30 seconds retarding the boot, something like:
a service is running for network-manager

I found this messages on gnome-logs:

15:32:09 wpa_supplicant: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1
15:32:06 NetworkManager: <info>  [1625509926.1427] Config: added 'psk' value '<hidden>'
15:32:06 wpa_supplicant: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1
15:32:06 NetworkManager: <info>  [1625509926.1373] device (wlp3s0): supplicant interface state: interface_disabled -> inactive
15:32:06 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x3-0x1
15:32:05 NetworkManager: <info>  [1625509925.7959] device (wlp3s0): set-hw-addr: reset MAC address to 58:94:6B:08:C7:34 (preserve)
15:32:02 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x3-0x1
15:32:02 NetworkManager: <info>  [1625509922.4065] device (wlp3s0): set-hw-addr: set MAC address to 2A:82:3A:B4:7D:51 (scanning)
15:32:02 wpa_supplicant: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1
15:31:45 kernel: SERVICE_STOP 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'
15:31:45 systemd: NetworkManager-dispatcher.service: Deactivated successfully.
15:31:45 wpa_supplicant: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1

I stumbled across a similar error in the Arch forum; perhaps it can help?
https://bbs.archlinux.org/viewtopic.php?pid=1854588#p1854588

I did not look at the other link, but from your error log I see that it is trying to connect using 2 different MAC addresses, and also that it looks like it is trying to connect to a “hidden” wifi AP. It is certain that having 2 different MACs on the same device will interfere with communications since the AP will configure one only per device.